[clang] 8859c64 - [clang][test] Make check pattern shorter

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 29 23:09:09 PDT 2023


Author: Serge Pavlov
Date: 2023-08-30T13:08:48+07:00
New Revision: 8859c644ede4898f90f77dcad2286de08a9ba62e

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

LOG: [clang][test] Make check pattern shorter

A check pattern in clang/test/SemaCXX/template-64605.cpp contains template
specialization kind (the text "implicit_instantiation"). It does not need to
be checked and can be safely removed.

Presence of this text in the check pattern prevents from backporting some
commits to the release branch: https://github.com/llvm/llvm-project/issues/64605.
It has only recently been printed and the relevant commit is not present in
the release/17.x branch.

Added: 
    

Modified: 
    clang/test/SemaCXX/template-64605.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCXX/template-64605.cpp b/clang/test/SemaCXX/template-64605.cpp
index 99ccbfdc27f1c8..9d7f8d41001711 100644
--- a/clang/test/SemaCXX/template-64605.cpp
+++ b/clang/test/SemaCXX/template-64605.cpp
@@ -16,7 +16,7 @@ int f() { return b_64605<void>(); }
 // CHECK:      ImplicitCastExpr {{.*}} 'float' <IntegralToFloating> RoundingMath=1 AllowFEnvAccess=1
 // CHECK-NEXT: IntegerLiteral {{.*}} 4294967295
 
-// CHECK:      FunctionDecl {{.*}} b_64605 'int ()' implicit_instantiation
+// CHECK:      FunctionDecl {{.*}} b_64605 'int ()'
 // CHECK-NEXT: TemplateArgument type 'void'
 
 // CHECK:      ImplicitCastExpr {{.*}} 'float' <IntegralToFloating> RoundingMath=1 AllowFEnvAccess=1


        


More information about the cfe-commits mailing list