cppinsights loses template<>
in explicit function template specializations
#200
Labels
bug
Something isn't working
For the following code
cppinsights produces
Note that there is no
template<>
before the explicit specializationMaybe because explicit specializations look similar to ordinary function declarations in the AST:
The
f<int, int>
instantiation is a child of theFunctionTemplateDecl
, but the explicit specialization is not. It is a direct child of theTranslationUnitDecl
.However, an ordinary function declaration would not have the
prev 0xXXX...
part andTemplateArgument
s.void f(int) {}
is turned intoThe text was updated successfully, but these errors were encountered: