[clang-tools-extra] [clangd] Add config option to analyze unused system headers (PR #87208)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 31 16:02:40 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 82c6eeed08b1c8267f6e92d594c910fe57a9775e f222e44f5586297ddd61ac0efff4a7115a766c53 -- 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/IncludeCleaner.cpp clang-tools-extra/clangd/IncludeCleaner.h clang-tools-extra/clangd/ParsedAST.cpp clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clangd/ConfigCompile.cpp b/clang-tools-extra/clangd/ConfigCompile.cpp
index 570f3cfc3c..f74c870adf 100644
--- a/clang-tools-extra/clangd/ConfigCompile.cpp
+++ b/clang-tools-extra/clangd/ConfigCompile.cpp
@@ -584,7 +584,8 @@ struct FragmentCompiler {
diag(Warning,
llvm::formatv("Invalid regular expression '{0}': {1}",
*HeaderPattern, RegexError)
- .str(), HeaderPattern.Range);
+ .str(),
+ HeaderPattern.Range);
continue;
}
Filters->push_back(std::move(CompiledRegex));
``````````
</details>
https://github.com/llvm/llvm-project/pull/87208
More information about the cfe-commits
mailing list