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

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Fri May 10 07:13:40 PDT 2024


================
@@ -226,6 +236,10 @@ def run_clang_tidy(self):
         print("------------------------------------------------------------------")
         return clang_tidy_output
 
+    def check_no_diagnosis(self, clang_tidy_output):
+        if clang_tidy_output != "":
+            sys.exit("No diagnostics were expected, but found the ones above")
----------------
5chmidti wrote:

Ah, ok. So the original printing that I pointed out was not intended to be there anyway.

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


More information about the cfe-commits mailing list