search for: templatetypeparmdecl

Displaying 2 results from an estimated 2 matches for "templatetypeparmdecl".

2013 Sep 05
0
[LLVMdev] [ast-dump] Class template partial specializations missing from an implicit class template instantiation?
...ame U> struct Inner<U*> {int f(){};}; }; int main() { Outer<float>::Inner<int*> ii; ii.f(); Outer<float>::Inner<int> i2; i2.f(); } The tree looks as expected for the template: |-ClassTemplateDecl 0x38e1de0 <test-src/main.cpp:1:2, line:5:2> Outer | |-TemplateTypeParmDecl 0x38e1ca0 <line:1:11, col:20> typename T | |-CXXRecordDecl 0x38e1d50 <line:2:2, line:5:2> struct Outer definition | | |-CXXRecordDecl 0x390eab0 <line:2:2, col:9> struct Outer | | |-ClassTemplateDecl 0x390ec80 <line:3:4, col:51> Inner | | | |-TemplateTypeParmDecl 0x390eb40 &l...
2016 Sep 21
4
Creating a clang-tidy const position check
I'm in the process of writing a clang-tidy check that concerns the position of the "const" keyword. The check should either enforce "T const" or "const T", based on a flag. Naturally, this should extend to all sorts of variations and qualifiers, e.g., X<const T&, Y const*> const&. My approach is to first find the right AST matcher expression to flag