mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
check-conventions: ignore all raw C++ strings
Before, we were just ignoring `R"LLVM(`.
This commit is contained in:
@@ -522,7 +522,7 @@ class CPPCheckPass(TaggedPass):
|
||||
|
||||
@staticmethod
|
||||
def parethesis_matcher(path: Path, line: str) -> List[re.Match]:
|
||||
if re.search(r"R\"LLVM.*\($", line):
|
||||
if re.search(r"R\"[^ (]*\($", line):
|
||||
return []
|
||||
main_match = re.search(r"\($", line)
|
||||
return [main_match] if main_match else []
|
||||
|
||||
Reference in New Issue
Block a user