-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[C++20][Modules] Implement P1857R3 Modules Dependency Discovery #107168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yronglin
wants to merge
53
commits into
llvm:main
Choose a base branch
from
yronglin:modules_dependency_discovery
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,415
−482
Open
Changes from 21 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
2cce3d1
[Clang] Add peekNextPPToken, makes peek next token without side-effects
yronglin 04ddbf6
[C++20][Modules] Implement P1857R3 Modules Dependency Discovery
yronglin 8529a7f
P3034R1 Module Declarations Shouldn’t be Macros
yronglin b75b5ba
Merge branch 'main' of https://github.com/llvm/llvm-project into modu…
yronglin ece6382
[clang-scan-deps] Only check eod token in C++ modules
yronglin 008844c
A module directive may only appear as the first preprocessing tokens …
yronglin db17bda
Format code
yronglin 1ce4def
Merge branch 'main' into modules_dependency_discovery
yronglin 1fa3090
Resolve merge conflicts
yronglin 5a85243
Merge remote-tracking branch 'origin' into modules_dependency_discovery
yronglin 687cdee
Use isNextPPTokenOneOf instead of peekNextPPToken
yronglin a7da327
Merge branch 'main' into modules_dependency_discovery
yronglin 8ce88a0
Follow isNextPPTokenOneOf's change
yronglin 32c142e
Merge remote-tracking branch 'origin' into modules_dependency_discovery
yronglin 4a84a31
Merge branch 'main' into modules_dependency_discovery
yronglin 21cb5ec
Follow getTrailingObjects changes
yronglin 27ab41f
Revert unnecessary changes and refine code
yronglin 63a62ae
Update cxx status
yronglin 0a63a88
Merge branch 'main' into modules_dependency_discovery
yronglin 9fb7cc2
Merge remote-tracking branch 'origin' into modules_dependency_discovery
yronglin 1171f7f
Fix crash
yronglin 3821f67
Revert "Revert unnecessary changes and refine code"
yronglin eabc2a4
Fix lit test
yronglin 23bad11
Merge remote-tracking branch 'origin' into modules_dependency_discovery
yronglin dbaa113
Merge remote-tracking branch 'origin' into modules_dependency_discovery
yronglin b533184
Rebase and fix conflict
yronglin f479274
Merge branch 'main' into modules_dependency_discovery
yronglin 695869e
Merge branch 'main' into modules_dependency_discovery
yronglin 0164d0d
Stash
yronglin 0c3667c
Merge branch 'main' into modules_dependency_discovery
yronglin 0588245
Handle @import in preprocessor when -frewrite-imports enabled
yronglin 49281ec
Don't use ModuleNameLoc* as ActOnModuleImport
yronglin 1c8b28f
Remove tok::annot_module_name and added error recovery to continue pa…
yronglin 14ba684
Add test for pp-module and pp-import
yronglin 2b930da
Merge branch 'main' into modules_dependency_discovery
yronglin 5dc3c9a
Refine isModuleContextualKeyword and isImportingCXXNamedModules, remo…
yronglin 3becb46
Check eof token first after LexIdentifierContinue
yronglin 82612f8
Refine err_invalid_module_or_import_directive and comments in Lexer.cpp
yronglin cde2304
Merge branch 'main' into modules_dependency_discovery
yronglin c07beac
Remove 'Don't emit macros about module declaration' section in Standa…
yronglin d7e5043
Remove error recovery
yronglin d42fe78
Handle c++ operator keyword after module/import
yronglin 80e8a3a
Merge branch 'main' into modules_dependency_discovery
yronglin 2b19d44
Don't need to check string literal
yronglin c9a6bd0
[clang] Fix macro expansion after module name in a module directive
yronglin 73bbd8f
Allow extra tokens after module/import directive and diag ; not in sa…
yronglin fd72e45
Add CWG2947 examples and fix bugs in previous commit
yronglin cc8e0af
Add new line at the end of clang/test/CXX/module/cpp.pre/p1.cpp
yronglin c69a88b
Refine diagnostics and address review comments
yronglin cef114c
Introduce annot_module_name to explicit mark module name tokens, e.g.…
yronglin b400909
Generate __preprocessed_{module, import} keyword in preprocessed out
yronglin 00728a5
Format
yronglin 3cf170c
Fix bugs and address review comments
yronglin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.