[clang-tools-extra] [clangd] Improve filtering logic for undesired proto symbols (PR #110091)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 02:06:05 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 7645d9c77d390cff68ec2d253bc5b23c37bc665f 48e17de386d504f01cf89dba1f7bd445b4ce78e4 --extensions cpp -- clang-tools-extra/clangd/index/SymbolCollector.cpp clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp b/clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
index 785a2fb294..e8088cb37f 100644
--- a/clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
+++ b/clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
@@ -258,7 +258,6 @@ TEST_F(ShouldCollectSymbolTest, NoPrivateProtoSymbol) {
   // with parent's name.
   EXPECT_FALSE(shouldCollect("nx::Foo::Foo_VAL2"));
   EXPECT_FALSE(shouldCollect("nx::Foo_VAL2"));
-
 }
 
 TEST_F(ShouldCollectSymbolTest, DoubleCheckProtoHeaderComment) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/110091


More information about the cfe-commits mailing list