ΒΆtemplate <typename FactoryT>
inline std::unique_ptr<FrontendActionFactory>
newFrontendActionFactory(
    FactoryT* ConsumerFactory,
    clang::tooling::SourceFileCallbacks*
        Callbacks = nullptr)

Description

Returns a new FrontendActionFactory for any type that provides an implementation of newASTConsumer(). FactoryT must implement: ASTConsumer *newASTConsumer(). Example: struct ProvidesASTConsumers { std::unique_ptr <clang ::ASTConsumer> newASTConsumer(); } Factory; std::unique_ptr <FrontendActionFactory > FactoryAdapter( newFrontendActionFactory( &Factory ));

Declared at: clang/include/clang/Tooling/Tooling.h:152

Templates

FactoryT

Parameters

FactoryT* ConsumerFactory
clang::tooling::SourceFileCallbacks* Callbacks = nullptr