Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
internal Namespace Reference

Functions

bool is_cached (const clang::tooling::CompilationDatabase &db, const std::filesystem::path &filename, const std::filesystem::path &tmpdir)
 
std::vector< std::string > parseTemplateArgs (const clang::TemplateArgumentList *TAL, clang::PrintingPolicy pp)
 
std::vector< ParamparseFunctionArgs (std::vector< clang::ParmVarDecl * > Args, clang::PrintingPolicy pp)
 

Detailed Description

Namespace for internal functions.

Function Documentation

◆ is_cached()

bool internal::is_cached ( const clang::tooling::CompilationDatabase & db,
const std::filesystem::path & filename,
const std::filesystem::path & tmpdir )

Helper function to detect whether the AST for filename is cached on disk.

Returns
true if the AST is cached, false if not.
Parameters
db: clang::tooling::CompilationDatabase to be able to invoke the compiler for getting the dependencies.
filename: Name of the source file

Definition at line 29 of file ASTCreation.cpp.

◆ parseFunctionArgs()

std::vector< Param > internal::parseFunctionArgs ( std::vector< clang::ParmVarDecl * > Args,
clang::PrintingPolicy pp )

Helper function to load function parameters.

Returns
std::vector<Param> with an instance of Param for each parameter.
Parameters
ArgsArray of clang::ParmVarDecl.
ppclang::PrintingPolicy which controls how strings are created.

Definition at line 69 of file Parsing.cpp.

◆ parseTemplateArgs()

std::vector< std::string > internal::parseTemplateArgs ( const clang::TemplateArgumentList * TAL,
clang::PrintingPolicy pp )

Helper function to load template arguments.

Returns
std::vector<std::string> with the names of all types of template arguments.
Parameters
TALPointer to a clang::TemplateArgumentList.
ppclang::PrintingPolicy which controls how strings are created.
Note
Template arguments can have different kinds (types, integral values, packs, template template). The function returns the type names for typed template parameters and the values for integral parameters.

Definition at line 9 of file Parsing.cpp.