[clangd-dev] Strange issue with RecursiveASTVisitor, TestTU, and variable templates

Nathan Ridge via clangd-dev clangd-dev at lists.llvm.org
Tue Apr 23 17:01:40 PDT 2019

>> Could you describe the problem you are trying to solve? Maybe 
>> there are alternative ways to go about it that don't involve looking 
>> at the template decl.

I am working on a protoype implementation of semantic highlighting [1]. To perform semantic highlighting, I need to visit all the tokens we may want to apply a highlighting to, including template parameters. Due to this bug, for a top-level variable template, the template parameter list never gets visited.


[1] https://github.com/Microsoft/vscode-languageserver-node/pull/367

More information about the clangd-dev mailing list