[llvm] [Testing] Allow custom markers in llvm::Annotations (PR #195570)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 07:33:13 PDT 2026
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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/Testing/Annotations/Annotations.h llvm/lib/Testing/Annotations/Annotations.cpp llvm/unittests/Testing/Annotations/AnnotationsTest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Testing/Annotations/Annotations.h b/llvm/include/llvm/Testing/Annotations/Annotations.h
index 16d793240..b2cc8a7cc 100644
--- a/llvm/include/llvm/Testing/Annotations/Annotations.h
+++ b/llvm/include/llvm/Testing/Annotations/Annotations.h
@@ -26,7 +26,8 @@ class raw_ostream;
/// $definition^class Foo{}; // points can be named: "definition"
/// $(foo)^class Foo{}; // ...or have a payload: "foo"
/// $definition(foo)^class Foo{}; // ...or both
-/// $fail(runtime)[[assert(false)]] // ranges can have names/payloads too
+/// $fail(runtime)[[assert(false)]] // ranges can have names/payloads
+/// too
/// )cpp");
///
/// StringRef Code = Example.code(); // annotations stripped.
``````````
</details>
https://github.com/llvm/llvm-project/pull/195570
More information about the llvm-commits
mailing list