[llvm] [llvm-dwp] turn duplicate dwo id into warning, continue to gen dwp (PR #121193)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 01:16:26 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 814902a03a2bb4114fd61c05e0e599fc98d61dbb 4f5d1f61ec72e0154c1da89ede2a05ff7f3d7dec --extensions cpp -- llvm/lib/DWP/DWP.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/DWP/DWP.cpp b/llvm/lib/DWP/DWP.cpp
index 52bf062247..f68cbf1fea 100644
--- a/llvm/lib/DWP/DWP.cpp
+++ b/llvm/lib/DWP/DWP.cpp
@@ -787,7 +787,8 @@ Error write(MCStreamer &Out, ArrayRef<std::string> Inputs,
const auto &ID = *EID;
auto P = IndexEntries.insert(std::make_pair(ID.Signature, Entry));
if (!P.second) {
- WithColor::defaultWarningHandler(buildDuplicateError(*P.first, ID, ""));
+ WithColor::defaultWarningHandler(
+ buildDuplicateError(*P.first, ID, ""));
FoundCUUnit = true;
continue;
}
@@ -862,7 +863,8 @@ Error write(MCStreamer &Out, ArrayRef<std::string> Inputs,
return createFileError(Input, EID.takeError());
const auto &ID = *EID;
if (!P.second) {
- WithColor::defaultWarningHandler(buildDuplicateError(*P.first, ID, Input));
+ WithColor::defaultWarningHandler(
+ buildDuplicateError(*P.first, ID, Input));
continue;
}
auto &NewEntry = P.first->second;
``````````
</details>
https://github.com/llvm/llvm-project/pull/121193
More information about the llvm-commits
mailing list