Skip to content

Commit 6ad9a09

Browse files
committed
Refine the CPPLINT script to not report a __CPROVER_ misuse false positive
1 parent f822af9 commit 6ad9a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cpplint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4614,7 +4614,7 @@ def Check__CPROVER_(filename, clean_lines, linenum, error):
46144614
error: The function to call with any errors found.
46154615
"""
46164616
line = clean_lines.lines[linenum]
4617-
match = Match(r'.*__CPROVER_.*', line)
4617+
match = Match(r'.*\"__CPROVER_.*\"', line)
46184618
if match:
46194619
error(filename, linenum, 'build/deprecated', 4,
46204620
'use CPROVER_PREFIX instead of __CPROVER_')

0 commit comments

Comments
 (0)