[clang] [clang-format] Support of TableGen basic format restrictions. (PR #81611)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 05:10:32 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 ea8de6e4336cf82aa541c6ad951b62585c3ea55c 43ad7755bf78df4141baf53dad977379482d1e94 -- clang/lib/Format/ContinuationIndenter.cpp clang/lib/Format/TokenAnnotator.cpp clang/unittests/Format/FormatTestTableGen.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/Format/FormatTestTableGen.cpp b/clang/unittests/Format/FormatTestTableGen.cpp
index 72df48644e..675e88d6e5 100644
--- a/clang/unittests/Format/FormatTestTableGen.cpp
+++ b/clang/unittests/Format/FormatTestTableGen.cpp
@@ -126,7 +126,8 @@ TEST_F(FormatTestTableGen, SimpleValue1_MultilineString) {
std::string DefWithCodeMessedUp =
"def SimpleValueCode { let \n"
"Code= \n"
- " [{ A TokCode is nothing more than a multi-line string literal "
+ " [{ A TokCode is nothing more than a multi-line string "
+ "literal "
"delimited by \\[{ and }\\]. It can break across lines and the line "
"breaks are retained in the string. \n"
"(https://llvm.org/docs/TableGen/ProgRef.html#grammar-token-TokCode)}] \n"
``````````
</details>
https://github.com/llvm/llvm-project/pull/81611
More information about the cfe-commits
mailing list