[clang] 70f952b - [clang][utils] Also match "col:" when looking for the end of builtins

Bruno Ricci via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 05:42:03 PDT 2020


Author: Bruno Ricci
Date: 2020-06-19T13:40:20+01:00
New Revision: 70f952bebe38f8117e6ce8986cd39f735b7b3d69

URL: https://github.com/llvm/llvm-project/commit/70f952bebe38f8117e6ce8986cd39f735b7b3d69
DIFF: https://github.com/llvm/llvm-project/commit/70f952bebe38f8117e6ce8986cd39f735b7b3d69.diff

LOG: [clang][utils] Also match "col:" when looking for the end of builtins

Some AST dump tests have no "line:" at all. See "ast-dump-wchar.cpp" for
an example.

Added: 
    

Modified: 
    clang/utils/make-ast-dump-check.sh

Removed: 
    


################################################################################
diff  --git a/clang/utils/make-ast-dump-check.sh b/clang/utils/make-ast-dump-check.sh
index 578c725f48b1..4e8a1c198608 100755
--- a/clang/utils/make-ast-dump-check.sh
+++ b/clang/utils/make-ast-dump-check.sh
@@ -48,6 +48,10 @@ BEGIN {
   skipping_builtins = 0
 }
 
+/^[\`|].* col:/ {
+  skipping_builtins = 0
+}
+
 {
   if (skipping_builtins == 1) {
     matched_last_line = 0


        


More information about the cfe-commits mailing list