diff --git a/clang/test/AST/dump.cpp b/clang/test/AST/dump.cpp index 812afb72f680..11e39f0c4c1d 100644 --- a/clang/test/AST/dump.cpp +++ b/clang/test/AST/dump.cpp @@ -43,7 +43,7 @@ struct S { } }; -// CHECK: | `-OMPParallelForDirective {{.+}} {{|}} +// CHECK: | `-OMPParallelForDirective {{.+}} {{|}} // CHECK-NEXT: | |-OMPDefaultClause {{.+}} // CHECK-NEXT: | |-OMPPrivateClause {{.+}} // CHECK-NEXT: | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &' @@ -53,19 +53,19 @@ struct S { // CHECK-NEXT: | |-OMPScheduleClause {{.+}} // CHECK-NEXT: | | `-ImplicitCastExpr {{.+}} 'int' // CHECK-NEXT: | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} '.capture_expr.' 'int' -// CHECK-NEXT: | `-CapturedStmt {{.+}} +// CHECK-NEXT: | `-CapturedStmt {{.+}} // CHECK-NEXT: | |-CapturedDecl {{.+}} <> -// CHECK-NEXT: | | |-ForStmt {{.+}} -// CHECK: | | | `-UnaryOperator {{.+}} 'int' lvalue prefix '++' +// CHECK-NEXT: | | |-ForStmt {{.+}} +// CHECK: | | | `-UnaryOperator {{.+}} 'int' lvalue prefix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &' #pragma omp declare simd #pragma omp declare simd inbranch void foo(); -// CHECK: |-FunctionDecl {{.+}} col:6 foo 'void ()' -// CHECK-NEXT: |-OMPDeclareSimdDeclAttr {{.+}} Implicit BS_Inbranch -// CHECK: `-OMPDeclareSimdDeclAttr {{.+}} Implicit BS_Undefined +// CHECK: |-FunctionDecl {{.+}} col:6 foo 'void ()' +// CHECK-NEXT: |-OMPDeclareSimdDeclAttr {{.+}} Implicit BS_Inbranch +// CHECK: `-OMPDeclareSimdDeclAttr {{.+}} Implicit BS_Undefined #pragma omp declare target int bar() { @@ -74,11 +74,11 @@ int bar() { } #pragma omp end declare target -// CHECK: `-FunctionDecl {{.+}} line:71:5 bar 'int ()' -// CHECK-NEXT: |-CompoundStmt {{.+}} -// CHECK-NEXT: | |-DeclStmt {{.+}} +// CHECK: `-FunctionDecl {{.+}} line:{{.+}}:5 bar 'int ()' +// CHECK-NEXT: |-CompoundStmt {{.+}} +// CHECK-NEXT: | |-DeclStmt {{.+}} // CHECK-NEXT: | | `-VarDecl {{.+}} col:7 used f 'int' -// CHECK-NEXT: | `-ReturnStmt {{.+}} +// CHECK-NEXT: | `-ReturnStmt {{.+}} // CHECK-NEXT: | `-ImplicitCastExpr {{.+}} 'int' // CHECK-NEXT: | `-DeclRefExpr {{.+}} 'int' lvalue Var {{.+}} 'f' 'int' // CHECK-NEXT: `-OMPDeclareTargetDeclAttr {{.+}} <> Implicit MT_To