[clang-tools-extra] [include-cleaner] Fix a race issue when editing multiple files. (PR #76960)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 06:17:30 PST 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 e9af57dfea1637a3872052b317c9fe6c71b8d290 6cc7141f1f182763ccec8a4801d3b866cc839324 -- clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp b/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
index eacdfab57b..9b22ad4924 100644
--- a/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
+++ b/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
@@ -119,7 +119,7 @@ private:
RecordedPP PP;
PragmaIncludes PI;
llvm::function_ref<bool(llvm::StringRef)> HeaderFilter;
- llvm::StringMap<std::string>& EditFiles;
+ llvm::StringMap<std::string> &EditFiles;
bool BeginInvocation(CompilerInstance &CI) override {
// We only perform include-cleaner analysis. So we disable diagnostics that
``````````
</details>
https://github.com/llvm/llvm-project/pull/76960
More information about the cfe-commits
mailing list