From e16cbce52e7eeee69853e7baa1c250f7d11f4685 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 30 Mar 2024 11:58:34 -0400 Subject: [PATCH] Internals: Fix clang_check_attributes false error print --- nodist/clang_check_attributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodist/clang_check_attributes b/nodist/clang_check_attributes index 682cd7e72..6794eef54 100755 --- a/nodist/clang_check_attributes +++ b/nodist/clang_check_attributes @@ -434,7 +434,7 @@ class CallAnnotationsValidator: self.process_translation_unit(translation_unit) self._main_source_file = "" self._defines = {} - else: + elif len(errors): print(f"%Error: parsing failed: {filename}", file=sys.stderr) for error in errors: print(f" {error}", file=sys.stderr)