This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Don't treat top-level decls as "local" if they are from the preamble.
ClosedPublic

Authored by sammccall on Nov 9 2018, 5:05 AM.

Diff Detail

Event Timeline

sammccall created this revision.Nov 9 2018, 5:05 AM
ilya-biryukov accepted this revision.Nov 9 2018, 5:42 AM

LGTM!

unittests/clangd/ClangdUnitTests.cpp
268

NIT: maybe use ASSEET_THAT(AST.getLocalTopLevelDecls(), ElementsAre(...))

Unless that's too hard for some reason.

This revision is now accepted and ready to land.Nov 9 2018, 5:42 AM
This revision was automatically updated to reflect the committed changes.
sammccall marked an inline comment as done.