[clang] Multilib error fixes (PR #110804)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 01:50:19 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 f9fbfc587d793b25e5f3ea0c8fa1db949085b158 765e431243b8ee6df9e118d7c1b21b270bf68c11 --extensions cpp,h -- clang/include/clang/Driver/Multilib.h clang/lib/Driver/Driver.cpp clang/lib/Driver/Multilib.cpp clang/lib/Driver/ToolChains/BareMetal.cpp clang/unittests/Driver/MultilibTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/Multilib.cpp b/clang/lib/Driver/Multilib.cpp
index fbf62da132..9d5cdde98c 100644
--- a/clang/lib/Driver/Multilib.cpp
+++ b/clang/lib/Driver/Multilib.cpp
@@ -32,8 +32,7 @@ using namespace llvm::sys;
Multilib::Multilib(StringRef GCCSuffix, StringRef OSSuffix,
StringRef IncludeSuffix, const flags_list &Flags,
- StringRef ExclusiveGroup,
- std::optional<StringRef> Error)
+ StringRef ExclusiveGroup, std::optional<StringRef> Error)
: GCCSuffix(GCCSuffix), OSSuffix(OSSuffix), IncludeSuffix(IncludeSuffix),
Flags(Flags), ExclusiveGroup(ExclusiveGroup), Error(Error) {
assert(GCCSuffix.empty() ||
diff --git a/clang/lib/Driver/ToolChains/BareMetal.cpp b/clang/lib/Driver/ToolChains/BareMetal.cpp
index 75ca0552ce..7e4cbe6b9b 100644
--- a/clang/lib/Driver/ToolChains/BareMetal.cpp
+++ b/clang/lib/Driver/ToolChains/BareMetal.cpp
@@ -201,7 +201,8 @@ static void findMultilibsFromYAML(const ToolChain &TC, const Driver &D,
// terminal.
for (const Multilib &Multilib : Result.SelectedMultilibs)
if (Multilib.isError())
- D.Diag(clang::diag::err_drv_multilib_custom_error) << Multilib.getErrorMessage();
+ D.Diag(clang::diag::err_drv_multilib_custom_error)
+ << Multilib.getErrorMessage();
// If there was an error, clear the SelectedMultilibs vector, in
// case it contains partial data.
``````````
</details>
https://github.com/llvm/llvm-project/pull/110804
More information about the cfe-commits
mailing list