Details
Details
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 28279 Build 28278: arc lint + arc unit
Event Timeline
Comment Actions
It feels that storing template parameters in the index is a waste, one can only access them through the scope they are introduced in (there are out-of-line definitions of a function, but I think we treat every redeclaration of template headers separately).
Can we get the information from the AST whenever we need it?
Comment Actions
Yeah you are right, no need to have those in the index. I thought we looked at only index for findreferences(which turned out to be wrong, we also traverse ast), therefore I had turned this functionality on for dynamic index.
clangd/XRefs.cpp | ||
---|---|---|
42–43 | Should probably also handle TemplateTemplateParmDecl? // two most-used constructs with template template parameter references. template<template <class> class U> struct Foo { ^U<int> f; Foo<^U> x; }; |
Should probably also handle TemplateTemplateParmDecl?
Could we add tests for template template parameters too?