These get passed to HandleTopLevelDecl() if they happen to have been
deserialized for any reason. We don't want to treat them as part of the
main file.
Details
Details
- Reviewers
ilya-biryukov - Commits
- rG9ac2f7a1f826: [clangd] Don't treat top-level decls as "local" if they are from the preamble.
rL346503: [clangd] Don't treat top-level decls as "local" if they are from the preamble.
rCTE346503: [clangd] Don't treat top-level decls as "local" if they are from the preamble.
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
Event Timeline
Comment Actions
LGTM!
unittests/clangd/ClangdUnitTests.cpp | ||
---|---|---|
268 | NIT: maybe use ASSEET_THAT(AST.getLocalTopLevelDecls(), ElementsAre(...)) Unless that's too hard for some reason. |
NIT: maybe use ASSEET_THAT(AST.getLocalTopLevelDecls(), ElementsAre(...))
Unless that's too hard for some reason.