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