[flang-commits] [clang] [flang] Fix more diagnostic wording for style; NFC (PR #93190)
via flang-commits
flang-commits at lists.llvm.org
Thu May 23 06:41:54 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 cc3b6c3ba9c0dd7df0fd7ac23c8609c4675dd62a 70b3ffc09709f9e5cbef4cab00f3d20adef29f35 -- clang/lib/Driver/ToolChains/Arch/LoongArch.cpp clang/lib/Driver/ToolChains/HIPSPV.cpp clang/lib/Frontend/SerializedDiagnosticPrinter.cpp clang/test/AST/Interp/builtin-functions.cpp clang/test/CodeGen/SystemZ/sync-builtins-i128-8Al.c clang/test/Driver/android-unversioned-fallback-warning.cpp clang/test/Driver/cl-x86-flags.c clang/test/Driver/cuda-cross-compiling.c clang/test/Driver/loongarch-mlasx-error.c clang/test/Driver/loongarch-mlsx-error.c clang/test/Driver/openmp-offload-infer.c clang/test/Driver/openmp-system-arch.c clang/test/Frontend/optimization-remark-options.c clang/test/Frontend/x86-target-cpu.c clang/test/OpenMP/atomic_messages.c clang/test/OpenMP/target_update_messages.cpp clang/test/Profile/misexpect-branch.c clang/test/Profile/misexpect-switch-default.c clang/test/Profile/misexpect-switch.c clang/test/Sema/constant_builtins_vector.cpp clang/test/SemaCXX/addr-label-in-coroutines.cpp clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma-misuse.cpp clang/unittests/Driver/DXCModeTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/Driver/DXCModeTest.cpp b/clang/unittests/Driver/DXCModeTest.cpp
index bca73b9c1d..5a27ec0201 100644
--- a/clang/unittests/Driver/DXCModeTest.cpp
+++ b/clang/unittests/Driver/DXCModeTest.cpp
@@ -156,9 +156,10 @@ TEST(DxcModeTest, ValidatorVersionValidation) {
TranslatedArgs.reset(
TC.TranslateArgs(*DAL, "0", Action::OffloadKind::OFK_None));
EXPECT_EQ(Diags.getNumErrors(), 1u);
- EXPECT_STREQ(DiagConsumer->Errors.back().c_str(),
- "invalid validator version : 0.1\; if validator major version is "
- "0, minor version must also be 0");
+ EXPECT_STREQ(
+ DiagConsumer->Errors.back().c_str(),
+ "invalid validator version : 0.1\; if validator major version is "
+ "0, minor version must also be 0");
Diags.Clear();
DiagConsumer->clear();
``````````
</details>
https://github.com/llvm/llvm-project/pull/93190
More information about the flang-commits
mailing list