[clang-tools-extra] [clang-tidy] support expect no diagnosis test (PR #91293)

via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 19:59:16 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r ddecadabebdd4b301bd65534b58009e57ac1bbe5...55aecbedf3e10207eaef1d4c7913086a32e16b1e clang-tools-extra/test/clang-tidy/check_clang_tidy.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- check_clang_tidy.py	2024-05-07 02:55:45.000000 +0000
+++ check_clang_tidy.py	2024-05-07 02:58:50.584570 +0000
@@ -224,15 +224,15 @@
         )
         print("------------------------------ Fixes -----------------------------")
         print(diff_output)
         print("------------------------------------------------------------------")
         return clang_tidy_output
-    
+
     def check_no_diagnosis(self, clang_tidy_output):
         print(clang_tidy_output)
         if clang_tidy_output != "":
-            sys.exit('expect no diagnosis')
+            sys.exit("expect no diagnosis")
 
     def check_fixes(self):
         if self.has_check_fixes:
             try_run(
                 [

``````````

</details>


https://github.com/llvm/llvm-project/pull/91293


More information about the cfe-commits mailing list