@@ -1290,8 +1290,8 @@ TEST(TypeHints, Lambda) {
12901290 assertTypeHints (R"cpp(
12911291 void f() {
12921292 int cap = 42;
1293- auto $L[[L]] = [cap, $init[[init]] = 1 + 1](int a$ret[[)]] {
1294- return a + cap + init;
1293+ auto $L[[L]] = [cap, $init[[init]] = 1 + 1](int a$ret[[)]] {
1294+ return a + cap + init;
12951295 };
12961296 }
12971297 )cpp" ,
@@ -1367,7 +1367,7 @@ TEST(TypeHints, StructuredBindings_TupleLike) {
13671367TEST (TypeHints, StructuredBindings_NoInitializer) {
13681368 assertTypeHints (R"cpp(
13691369 // No initializer (ill-formed).
1370- // Do not show useless "NULL TYPE" hint.
1370+ // Do not show useless "NULL TYPE" hint.
13711371 auto [x, y]; /*error-ok*/
13721372 )cpp" );
13731373}
@@ -1670,15 +1670,16 @@ TEST(TypeHints, SubstTemplateParameterAliases) {
16701670 auto $end[[end]] = array.end();
16711671 )cpp" ;
16721672
1673- assertHintsWithHeader (
1674- InlayHintKind::Type, VectorIntPtr, Header,
1675- ExpectedHint{" : int *" , " no_modifier" },
1676- ExpectedHint{" : int **" , " ptr_modifier" },
1677- ExpectedHint{" : int *&" , " ref_modifier" },
1678- ExpectedHint{" : int *const &" , " at" }, ExpectedHint{" : int **" , " data" },
1679- ExpectedHint{" : allocator<int *>" , " allocator" },
1680- ExpectedHint{" : size_type" , " size" }, ExpectedHint{" : iterator" , " begin" },
1681- ExpectedHint{" : non_template_iterator" , " end" });
1673+ assertHintsWithHeader (InlayHintKind::Type, VectorIntPtr, Header,
1674+ ExpectedHint{" : int *" , " no_modifier" },
1675+ ExpectedHint{" : int **" , " ptr_modifier" },
1676+ ExpectedHint{" : int *&" , " ref_modifier" },
1677+ ExpectedHint{" : const value_type &" , " at" },
1678+ ExpectedHint{" : pointer" , " data" },
1679+ ExpectedHint{" : allocator_type" , " allocator" },
1680+ ExpectedHint{" : size_type" , " size" },
1681+ ExpectedHint{" : iterator" , " begin" },
1682+ ExpectedHint{" : non_template_iterator" , " end" });
16821683
16831684 llvm::StringRef VectorInt = R"cpp(
16841685 vector<int> array;
@@ -1694,15 +1695,16 @@ TEST(TypeHints, SubstTemplateParameterAliases) {
16941695 auto $end[[end]] = array.end();
16951696 )cpp" ;
16961697
1697- assertHintsWithHeader (
1698- InlayHintKind::Type, VectorInt, Header,
1699- ExpectedHint{" : int" , " no_modifier" },
1700- ExpectedHint{" : int *" , " ptr_modifier" },
1701- ExpectedHint{" : int &" , " ref_modifier" },
1702- ExpectedHint{" : const int &" , " at" }, ExpectedHint{" : int *" , " data" },
1703- ExpectedHint{" : allocator<int>" , " allocator" },
1704- ExpectedHint{" : size_type" , " size" }, ExpectedHint{" : iterator" , " begin" },
1705- ExpectedHint{" : non_template_iterator" , " end" });
1698+ assertHintsWithHeader (InlayHintKind::Type, VectorInt, Header,
1699+ ExpectedHint{" : int" , " no_modifier" },
1700+ ExpectedHint{" : int *" , " ptr_modifier" },
1701+ ExpectedHint{" : int &" , " ref_modifier" },
1702+ ExpectedHint{" : const value_type &" , " at" },
1703+ ExpectedHint{" : pointer" , " data" },
1704+ ExpectedHint{" : allocator_type" , " allocator" },
1705+ ExpectedHint{" : size_type" , " size" },
1706+ ExpectedHint{" : iterator" , " begin" },
1707+ ExpectedHint{" : non_template_iterator" , " end" });
17061708
17071709 llvm::StringRef TypeAlias = R"cpp(
17081710 // If the type alias is not of substituted template parameter type,
@@ -1899,13 +1901,13 @@ TEST(BlockEndHints, Functions) {
18991901 return 41;
19001902 $foo[[}]]
19011903
1902- template<int X>
1903- int bar() {
1904+ template<int X>
1905+ int bar() {
19041906 // No hint for lambda for now
1905- auto f = []() {
1906- return X;
1907+ auto f = []() {
1908+ return X;
19071909 };
1908- return f();
1910+ return f();
19091911 $bar[[}]]
19101912
19111913 // No hint because this isn't a definition
@@ -1926,7 +1928,7 @@ TEST(BlockEndHints, Methods) {
19261928 struct Test {
19271929 // No hint because there's no function body
19281930 Test() = default;
1929-
1931+
19301932 ~Test() {
19311933 $dtor[[}]]
19321934
@@ -2229,7 +2231,7 @@ TEST(BlockEndHints, TrailingSemicolon) {
22292231 assertBlockEndHints (R"cpp(
22302232 // The hint is placed after the trailing ';'
22312233 struct S1 {
2232- $S1[[} ;]]
2234+ $S1[[} ;]]
22332235
22342236 // The hint is always placed in the same line with the closing '}'.
22352237 // So in this case where ';' is missing, it is attached to '}'.
@@ -2250,7 +2252,7 @@ TEST(BlockEndHints, TrailingSemicolon) {
22502252 struct {
22512253 int x;
22522254 $anon[[}]]
2253-
2255+
22542256 s2;
22552257 )cpp" ,
22562258 ExpectedHint{" // struct S1" , " S1" },
0 commit comments