clang-metatool
A framework for reusing code in clang tools
|
#include <clangmetatool/meta_tool_factory.h>
Public Member Functions | |
MetaToolFactory (std::map< std::string, clang::tooling::Replacements > &replacements, typename T::ArgTypes &args) | |
MetaToolFactory (std::map< std::string, clang::tooling::Replacements > &replacements) | |
virtual clang::FrontendAction * | create () |
MetaToolFactory wraps around FrontendAction class that takes a replacementsMap as argument to the construtor. You can use it in conjunction with the MetaTool class to reduce boilerplate in the code requjired to write a clang tool.
Definition at line 19 of file meta_tool_factory.h.
|
inline |
Metatool factory takes a reference to the replacements map that will be used for this run in, along with any additional arguments that need to be passed on to the Tool
Definition at line 35 of file meta_tool_factory.h.
|
inline |
Definition at line 40 of file meta_tool_factory.h.
|
inlinevirtual |
This will create the object of your tool giving the replacemnets map as an argument.
Definition at line 48 of file meta_tool_factory.h.