[PATCH] D87830: [clang-tidy][test] Allow empty checks in check_clang_tidy.py
Endre Fülöp via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 07:06:22 PDT 2020
gamesh411 updated this revision to Diff 292487.
gamesh411 added a comment.
Tidy up commit message
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87830/new/
https://reviews.llvm.org/D87830
Files:
clang-tools-extra/test/clang-tidy/check_clang_tidy.py
Index: clang-tools-extra/test/clang-tidy/check_clang_tidy.py
===================================================================
--- clang-tools-extra/test/clang-tidy/check_clang_tidy.py
+++ clang-tools-extra/test/clang-tidy/check_clang_tidy.py
@@ -167,7 +167,7 @@
subprocess.check_output(
['FileCheck', '-input-file=' + temp_file_name, input_file_name,
'-check-prefixes=' + ','.join(check_fixes_prefixes),
- '-strict-whitespace'],
+ '-strict-whitespace', '--allow-empty'],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
print('FileCheck failed:\n' + e.output.decode())
@@ -180,7 +180,7 @@
subprocess.check_output(
['FileCheck', '-input-file=' + messages_file, input_file_name,
'-check-prefixes=' + ','.join(check_messages_prefixes),
- '-implicit-check-not={{warning|error}}:'],
+ '-implicit-check-not={{warning|error}}:', '--allow-empty'],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
print('FileCheck failed:\n' + e.output.decode())
@@ -195,7 +195,7 @@
subprocess.check_output(
['FileCheck', '-input-file=' + notes_file, input_file_name,
'-check-prefixes=' + ','.join(check_notes_prefixes),
- '-implicit-check-not={{note|warning|error}}:'],
+ '-implicit-check-not={{note|warning|error}}:', '--allow-empty'],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
print('FileCheck failed:\n' + e.output.decode())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87830.292487.patch
Type: text/x-patch
Size: 1593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200917/c9efdf64/attachment.bin>
More information about the cfe-commits
mailing list