-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cxxmodules] Prevent RScanner from accessing hidden declarations.
RScanner iterates over all decls in our AST, but with modules we have hidden decl from unimported submodules in our AST. As we call Sema functions on these decls which use the normal clang lookup that respects visibility, we suddenly get mysterious lookup failures from inside Sema when running rootcling. This patch restricts RScanner to looking at visible decls, which restores the original behavior where RScanner onlys sees visible decls from included headers.
- Loading branch information
1 parent
9c2851e
commit a785402
Showing
2 changed files
with
41 additions
and
0 deletions.
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