-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add support for importing a trivial global C++ function #5033
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9358e9d
Add support for import a trivial global C++ function
bricknerb afd4441
Fix formatting
bricknerb a1cf815
Style: Avoid typename in braced initialization
bricknerb ddb345b
When finding a name in `Cpp`, but the found declaration is not suppor…
bricknerb 2ffec0e
Add a TODO to remove `File::set_cpp_ast()`
bricknerb b6b93aa
TODO for `isClassLookup()`
bricknerb a216d6c
Add function comments
bricknerb b12945e
Initialize `Unit.cpp_ast` to null by default.
bricknerb b369be6
Change `ImportCppFiles()` to return the AST instead of using a return…
bricknerb 63701ab
Improve `File::cpp_ast_` comment
bricknerb 3ec0ec8
Remove unnecessary `CARBON_CHECK`
bricknerb 29e1548
Handle special names by using `GetIRBaseName()`
bricknerb 30881c1
Add a test for using a the wrong name when calling a `Cpp` function
bricknerb b7e5bc4
Update test name to include `fail_`
bricknerb 0384049
Improve class lookup TODO
bricknerb 2c59d1d
Do not allow using special names in `Cpp`. Use raw keyword syntax ins…
bricknerb 4cf320d
Fix style and grammar.
bricknerb 16867c9
Treat special names inside `Cpp` as not existing
bricknerb 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
There are no files selected for viewing
This file contains 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe (given the "unsupported" string):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.