[clang] e818ce0 - [clang] Make parts of index test optional

Danny Mösch via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 26 23:26:02 PDT 2022


Author: Danny Mösch
Date: 2022-07-27T08:25:52+02:00
New Revision: e818ce0e060901be98eb1b043ca581c746171085

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

LOG: [clang] Make parts of index test optional

Reason is that the test behaves differently in clang-ppc64-aix in that the optional part appears in the output.

Added: 
    

Modified: 
    clang/test/Index/cursor-ref-names.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Index/cursor-ref-names.cpp b/clang/test/Index/cursor-ref-names.cpp
index e34c65eefd254..c4ec6ea72d9dc 100644
--- a/clang/test/Index/cursor-ref-names.cpp
+++ b/clang/test/Index/cursor-ref-names.cpp
@@ -33,7 +33,7 @@ int main()
 // CHECK: cursor-ref-names.cpp:18:5: CallExpr=func:8:10 Extent=[18:5 - 18:16]
 // CHECK: cursor-ref-names.cpp:18:10: MemberRefExpr=func:8:10 SingleRefName=[18:10 - 18:14] RefName=[18:10 - 18:14] Extent=[18:5 - 18:14]
 // CHECK: cursor-ref-names.cpp:18:5: DeclRefExpr=inst:17:9 Extent=[18:5 - 18:9]
-// CHECK: cursor-ref-names.cpp:19:5: CallExpr=operator[]:4:9 Extent=[19:5 - 19:12] 
+// CHECK: cursor-ref-names.cpp:19:5: CallExpr=operator[]:4:9{{(\Q SingleRefName=[19:9 - 19:12] RefName=[19:9 - 19:10] RefName=[19:11 - 19:12]\E)?}} Extent=[19:5 - 19:12]
 // CHECK: cursor-ref-names.cpp:19:5: DeclRefExpr=inst:17:9 Extent=[19:5 - 19:9]
 // CHECK: cursor-ref-names.cpp:19:9: DeclRefExpr=operator[]:4:9 Extent=[19:9 - 19:10]
 // CHECK: cursor-ref-names.cpp:20:5: CallExpr=operator[]:4:9 Extent=[20:5 - 20:23]


        


More information about the cfe-commits mailing list