Ignore line markers from C preprocessing stage

This commit is contained in:
Minseong Jang
2022-03-25 00:57:32 +09:00
parent 44d898f568
commit f361f52e7d
2 changed files with 1 additions and 1 deletions

View File

@@ -138,6 +138,7 @@ def polish(src, inc_path):
args = ["gcc", args = ["gcc",
"-I", inc_path, "-I", inc_path,
"-E", "-E",
"-P",
"-", "-",
] ]
proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE) proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)

View File

@@ -18,7 +18,6 @@ if
grep 'main-return-type' out.txt ||\ grep 'main-return-type' out.txt ||\
grep 'conversions than data arguments' out.txt ||\ grep 'conversions than data arguments' out.txt ||\
grep 'int-conversion' out.txt ||\ grep 'int-conversion' out.txt ||\
grep 'incompatible redeclaration' out.txt ||\
grep 'ordered comparison between pointer and zero' out.txt ||\ grep 'ordered comparison between pointer and zero' out.txt ||\
grep 'ordered comparison between pointer and integer' out.txt ||\ grep 'ordered comparison between pointer and integer' out.txt ||\
grep 'eliding middle term' out.txt ||\ grep 'eliding middle term' out.txt ||\