Skip to content

Commit 5fb788b

Browse files
committed
github actions/undef warnings: allow newlines after undef
1 parent 939d3d0 commit 5fb788b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def format_run(self, changed_files: List[str], args: FormatArgs) -> Optional[str
391391
return None
392392

393393
# Use git to find files that have had a change in the number of undefs
394-
regex = "([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9,_-]|UndefValue::get)"
394+
regex = "([^a-zA-Z0-9#_-]undef([^a-zA-Z0-9_-]|$)|UndefValue::get)"
395395
cmd = ["git", "diff", "-U0", "--pickaxe-regex", "-S", regex]
396396

397397
if args.start_rev and args.end_rev:

0 commit comments

Comments
 (0)