[PATCH] D115301: [clangd] Don't index __reserved_names in headers.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 4 22:20:31 PST 2022
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
thanks!
================
Comment at: clang-tools-extra/clangd/SourceCode.h:334
+/// Returns true if Name is reserved, like _Foo or __Vector_base.
+inline bool isReservedName(llvm::StringRef Name) {
+ // This doesn't catch all cases, but the most common.
----------------
nit: maybe move definition out-of-line.
================
Comment at: clang-tools-extra/clangd/unittests/QualityTests.cpp:60
- EXPECT_FALSE(Quality.ImplementationDetail);
- EXPECT_TRUE(Quality.ReservedName);
- EXPECT_EQ(Quality.References, SymbolQualitySignals().References);
----------------
can we still have a test that indexes main file symbols and ensures `ReservedName` is set correctly?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115301/new/
https://reviews.llvm.org/D115301
More information about the cfe-commits
mailing list