File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -912,7 +912,7 @@ bool operator==(const HighlightingToken &L, const HighlightingToken &R) {
912
912
std::tie (R.R , R.Kind , R.Modifiers );
913
913
}
914
914
bool operator <(const HighlightingToken &L, const HighlightingToken &R) {
915
- return std::tie (L.R , L.Kind , R .Modifiers ) <
915
+ return std::tie (L.R , L.Kind , L .Modifiers ) <
916
916
std::tie (R.R , R.Kind , R.Modifiers );
917
917
}
918
918
Original file line number Diff line number Diff line change @@ -795,7 +795,19 @@ sizeof...($TemplateParameter[[Elements]]);
795
795
typedef int $Primitive_decl[[MyTypedef]];
796
796
enum $Enum_decl[[MyEnum]] : $Primitive[[MyTypedef]] {};
797
797
)cpp" ,
798
- };
798
+ // Issue 1096
799
+ R"cpp(
800
+ void $Function_decl[[Foo]]();
801
+ // Use <: :> digraphs for deprecated attribute to avoid conflict with annotation syntax
802
+ <:<:deprecated:>:> void $Function_decl_deprecated[[Foo]](int* $Parameter_decl[[x]]);
803
+ void $Function_decl[[Foo]](int $Parameter_decl[[x]]);
804
+ template <typename $TemplateParameter_decl[[T]]>
805
+ void $Function_decl[[Bar]]($TemplateParameter[[T]] $Parameter_decl[[x]]) {
806
+ $Function_deprecated[[Foo]]($Parameter[[x]]);
807
+ $Function_deprecated[[Foo]]($Parameter[[x]]);
808
+ $Function_deprecated[[Foo]]($Parameter[[x]]);
809
+ }
810
+ )cpp" };
799
811
for (const auto &TestCase : TestCases)
800
812
// Mask off scope modifiers to keep the tests manageable.
801
813
// They're tested separately.
You can’t perform that action at this time.
0 commit comments