Skip to content

Commit 3996675

Browse files
committed
Address feedback
1 parent 9e41d6e commit 3996675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/utils/generate-test-checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ def process_attribute_references(line, attribute_namer):
236236
# Pre-process a line of input to remove any character sequences that will be
237237
# problematic with FileCheck.
238238
def preprocess_line(line):
239-
# If input line has `{{` i.e. in a StrAttr with serialized proto.
239+
# Replace any `{{` with escaped replacements. `{{` corresponds to regex
240+
# checks in FileCheck.
240241
output_line = line.replace("{{", "{{\\{\\{}}")
241242

242243
# Replace any double brackets, '[[' with escaped replacements. '[['

0 commit comments

Comments
 (0)