File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ std::optional<HighlightingKind> kindForDecl(const NamedDecl *D,
136
136
if (auto *OMD = dyn_cast<ObjCMethodDecl>(D))
137
137
return OMD->isClassMethod () ? HighlightingKind::StaticMethod
138
138
: HighlightingKind::Method;
139
- if (isa<FieldDecl, ObjCPropertyDecl>(D))
139
+ if (isa<FieldDecl, IndirectFieldDecl, ObjCPropertyDecl>(D))
140
140
return HighlightingKind::Field;
141
141
if (isa<EnumDecl>(D))
142
142
return HighlightingKind::Enum;
Original file line number Diff line number Diff line change @@ -1076,6 +1076,22 @@ sizeof...($TemplateParameter[[Elements]]);
1076
1076
using $Class[[Y]]$Bracket[[<]]0$Bracket[[>]]::$Unknown_dependentName[[xxx]];
1077
1077
};
1078
1078
};
1079
+ )cpp" ,
1080
+ // Heuristically resolved IndirectFieldDecl
1081
+ R"cpp(
1082
+ template $Bracket[[<]]typename $TemplateParameter_def[[T]]$Bracket[[>]]
1083
+ struct $Class_def[[Base]] {
1084
+ struct {
1085
+ int $Field_decl[[waldo]];
1086
+ };
1087
+ };
1088
+ template $Bracket[[<]]typename $TemplateParameter_def[[T]]$Bracket[[>]]
1089
+ struct $Class_def[[Derived]] : $Class[[Base]]$Bracket[[<]]$TemplateParameter[[T]]$Bracket[[>]] {
1090
+ using $Class[[Base]]$Bracket[[<]]$TemplateParameter[[T]]$Bracket[[>]]::$Field_dependentName[[waldo]];
1091
+ void $Method_def[[foo]]() {
1092
+ $Field_dependentName[[waldo]];
1093
+ }
1094
+ };
1079
1095
)cpp" };
1080
1096
for (const auto &TestCase : TestCases)
1081
1097
// Mask off scope modifiers to keep the tests manageable.
You can’t perform that action at this time.
0 commit comments