[clang-tools-extra] [clangd] Handle IndirectFieldDecl in kindForDecl (PR #80588)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 5 00:05:09 PST 2024
================
@@ -1076,6 +1076,21 @@ sizeof...($TemplateParameter[[Elements]]);
using $Class[[Y]]$Bracket[[<]]0$Bracket[[>]]::$Unknown_dependentName[[xxx]];
};
};
+ )cpp",
+ R"cpp(
+ template $Bracket[[<]]typename $TemplateParameter_def[[T]]$Bracket[[>]]
+ struct $Class_def[[Base]] {
+ struct {
+ int $Field_decl[[waldo]];
+ };
+ };
+ template $Bracket[[<]]typename $TemplateParameter_def[[T]]$Bracket[[>]]
+ struct $Class_def[[Derived]] : $Class[[Base]]$Bracket[[<]]$TemplateParameter[[T]]$Bracket[[>]] {
+ using $Class[[Base]]$Bracket[[<]]$TemplateParameter[[T]]$Bracket[[>]]::$Field_dependentName[[waldo]];
+ void $Method_def[[foo]]() {
+ $Field_dependentName[[waldo]];
----------------
hokein wrote:
nit: This has a lot of boilerplate code that are required for this case , it is better to have a comment clarifying the test purpose.
https://github.com/llvm/llvm-project/pull/80588
More information about the cfe-commits
mailing list