@@ -1022,91 +1022,91 @@ TEST(DeclPrinter, TestFieldDecl2) {
1022
1022
}
1023
1023
1024
1024
TEST (DeclPrinter, TestClassTemplateDecl1) {
1025
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1026
- " template<typename T>"
1027
- " struct A { T a; };" ,
1028
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1029
- " template <typename T> struct A {}" ));
1025
+ ASSERT_TRUE (
1026
+ PrintedDeclCXX98Matches ( " template<typename T>"
1027
+ " struct A { T a; };" ,
1028
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1029
+ " template <typename T> struct A {}" ));
1030
1030
}
1031
1031
1032
1032
TEST (DeclPrinter, TestClassTemplateDecl2) {
1033
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1034
- " template<typename T = int>"
1035
- " struct A { T a; };" ,
1036
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1037
- " template <typename T = int> struct A {}" ));
1033
+ ASSERT_TRUE (
1034
+ PrintedDeclCXX98Matches ( " template<typename T = int>"
1035
+ " struct A { T a; };" ,
1036
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1037
+ " template <typename T = int> struct A {}" ));
1038
1038
}
1039
1039
1040
1040
TEST (DeclPrinter, TestClassTemplateDecl3) {
1041
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1042
- " template<class T>"
1043
- " struct A { T a; };" ,
1044
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1045
- " template <class T> struct A {}" ));
1041
+ ASSERT_TRUE (
1042
+ PrintedDeclCXX98Matches ( " template<class T>"
1043
+ " struct A { T a; };" ,
1044
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1045
+ " template <class T> struct A {}" ));
1046
1046
}
1047
1047
1048
1048
TEST (DeclPrinter, TestClassTemplateDecl4) {
1049
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1050
- " template<typename T, typename U>"
1051
- " struct A { T a; U b; };" ,
1052
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1053
- " template <typename T, typename U> struct A {}" ));
1049
+ ASSERT_TRUE (
1050
+ PrintedDeclCXX98Matches ( " template<typename T, typename U>"
1051
+ " struct A { T a; U b; };" ,
1052
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1053
+ " template <typename T, typename U> struct A {}" ));
1054
1054
}
1055
1055
1056
1056
TEST (DeclPrinter, TestClassTemplateDecl5) {
1057
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1058
- " template<int N>"
1059
- " struct A { int a[N]; };" ,
1060
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1061
- " template <int N> struct A {}" ));
1057
+ ASSERT_TRUE (
1058
+ PrintedDeclCXX98Matches ( " template<int N>"
1059
+ " struct A { int a[N]; };" ,
1060
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1061
+ " template <int N> struct A {}" ));
1062
1062
}
1063
1063
1064
1064
TEST (DeclPrinter, TestClassTemplateDecl6) {
1065
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1066
- " template<int N = 42>"
1067
- " struct A { int a[N]; };" ,
1068
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1069
- " template <int N = 42> struct A {}" ));
1065
+ ASSERT_TRUE (
1066
+ PrintedDeclCXX98Matches ( " template<int N = 42>"
1067
+ " struct A { int a[N]; };" ,
1068
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1069
+ " template <int N = 42> struct A {}" ));
1070
1070
}
1071
1071
1072
1072
TEST (DeclPrinter, TestClassTemplateDecl7) {
1073
- ASSERT_TRUE (PrintedDeclCXX98Matches (
1074
- " typedef int MyInt;"
1075
- " template<MyInt N>"
1076
- " struct A { int a[N]; };" ,
1077
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1078
- " template <MyInt N> struct A {}" ));
1073
+ ASSERT_TRUE (
1074
+ PrintedDeclCXX98Matches ( " typedef int MyInt;"
1075
+ " template<MyInt N>"
1076
+ " struct A { int a[N]; };" ,
1077
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1078
+ " template <MyInt N> struct A {}" ));
1079
1079
}
1080
1080
1081
1081
TEST (DeclPrinter, TestClassTemplateDecl8) {
1082
1082
ASSERT_TRUE (PrintedDeclCXX98Matches (
1083
- " template<template<typename U> class T> struct A { };" ,
1084
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1085
- " template <template <typename U> class T> struct A {}" ));
1083
+ " template<template<typename U> class T> struct A { };" ,
1084
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1085
+ " template <template <typename U> class T> struct A {}" ));
1086
1086
}
1087
1087
1088
1088
TEST (DeclPrinter, TestClassTemplateDecl9) {
1089
1089
ASSERT_TRUE (PrintedDeclCXX98Matches (
1090
- " template<typename T> struct Z { };"
1091
- " template<template<typename U> class T = Z> struct A { };" ,
1092
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1093
- " template <template <typename U> class T> struct A {}" ));
1090
+ " template<typename T> struct Z { };"
1091
+ " template<template<typename U> class T = Z> struct A { };" ,
1092
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1093
+ " template <template <typename U> class T> struct A {}" ));
1094
1094
}
1095
1095
1096
1096
TEST (DeclPrinter, TestClassTemplateDecl10) {
1097
- ASSERT_TRUE (PrintedDeclCXX11Matches (
1098
- " template<typename... T>"
1099
- " struct A { int a; };" ,
1100
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1101
- " template <typename ...T> struct A {}" ));
1097
+ ASSERT_TRUE (
1098
+ PrintedDeclCXX11Matches ( " template<typename... T>"
1099
+ " struct A { int a; };" ,
1100
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1101
+ " template <typename ...T> struct A {}" ));
1102
1102
}
1103
1103
1104
1104
TEST (DeclPrinter, TestClassTemplateDecl11) {
1105
1105
ASSERT_TRUE (PrintedDeclCXX11Matches (
1106
- " template<typename... T>"
1107
- " struct A : public T... { int a; };" ,
1108
- classTemplateDecl (hasName (" A" )).bind (" id" ),
1109
- " template <typename ...T> struct A : public T... {}" ));
1106
+ " template<typename... T>"
1107
+ " struct A : public T... { int a; };" ,
1108
+ classTemplateDecl (hasName (" A" )).bind (" id" ),
1109
+ " template <typename ...T> struct A : public T... {}" ));
1110
1110
}
1111
1111
1112
1112
TEST (DeclPrinter, TestClassTemplatePartialSpecializationDecl1) {
0 commit comments