[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 09:43:58 PDT 2025
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 HEAD~1 HEAD --extensions h,cpp -- clang-tools-extra/clangd/ClangdServer.cpp clang-tools-extra/clangd/CodeComplete.cpp clang-tools-extra/clangd/CodeComplete.h clang-tools-extra/clangd/Config.h clang-tools-extra/clangd/ConfigCompile.cpp clang-tools-extra/clangd/ConfigFragment.h clang-tools-extra/clangd/ConfigYAML.cpp clang-tools-extra/clangd/tool/ClangdMain.cpp clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp b/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
index 9077d5fa1..8387a847f 100644
--- a/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
+++ b/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
@@ -3337,7 +3337,8 @@ TEST(CompletionTest, NoCodePatternsIfDisabled) {
/// {statements}~" code pattern
for^
}
- )cpp", {}, Opts);
+ )cpp",
+ {}, Opts);
EXPECT_THAT(Results.Completions,
Not(Contains(kind(CompletionItemKind::Snippet))));
``````````
</details>
https://github.com/llvm/llvm-project/pull/137613
More information about the cfe-commits
mailing list