[llvm] 4e996e5 - fix #163478: false positive in the github actions undef warning
Nuno Lopes via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 15 18:12:22 PDT 2025
Author: Nuno Lopes
Date: 2025-10-16T02:12:14+01:00
New Revision: 4e996e5d177a6fe834340d87e202d167af7392b2
URL: https://github.com/llvm/llvm-project/commit/4e996e5d177a6fe834340d87e202d167af7392b2
DIFF: https://github.com/llvm/llvm-project/commit/4e996e5d177a6fe834340d87e202d167af7392b2.diff
LOG: fix #163478: false positive in the github actions undef warning
Happened with 'undef,' -- comma not being recognized as a word boundary
Added:
Modified:
llvm/utils/git/code-format-helper.py
Removed:
################################################################################
diff --git a/llvm/utils/git/code-format-helper.py b/llvm/utils/git/code-format-helper.py
index e9fd132d8b0e4..f60a83905331e 100755
--- a/llvm/utils/git/code-format-helper.py
+++ b/llvm/utils/git/code-format-helper.py
@@ -391,7 +391,7 @@ def format_run(self, changed_files: List[str], args: FormatArgs) -> Optional[str
return None
# Use git to find files that have had a change in the number of undefs
- regex = "([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)"
+ regex = "([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9,_-]|UndefValue::get)"
cmd = ["git", "
diff ", "-U0", "--pickaxe-regex", "-S", regex]
if args.start_rev and args.end_rev:
More information about the llvm-commits
mailing list