Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
Matcher.cpp
Go to the documentation of this file.
1#include "Matcher/Matcher.hpp"
2
3using namespace clang::ast_matchers;
4
5DeclarationMatcher TemplInstWithoutDef(const internal::Matcher<clang::NamedDecl>& excluded_names)
6{
8 return functionDecl(isTemplateInstantiation(), unless(isDefinition()), unless(excluded_names)).bind("templ_func_instantation");
10}
11
12DeclarationMatcher FuncWithDef(const internal::Matcher<clang::NamedDecl>& excluded_names)
13{
15 return functionDecl(isDefinition(), unless(excluded_names)).bind("func_definition");
17}
18
19DeclarationMatcher TemplInst(const internal::Matcher<clang::NamedDecl>& excluded_names)
20{
22 return functionDecl(isTemplateInstantiation(), unless(excluded_names)).bind("explicit_instantiation");
24}
DeclarationMatcher FuncWithDef(const internal::Matcher< clang::NamedDecl > &excluded_names)
Definition Matcher.cpp:12
DeclarationMatcher TemplInstWithoutDef(const internal::Matcher< clang::NamedDecl > &excluded_names)
Definition Matcher.cpp:5
DeclarationMatcher TemplInst(const internal::Matcher< clang::NamedDecl > &excluded_names)
Definition Matcher.cpp:19
AST matcher expressions to filter the relevant nodes for template instantiations.