make it possible to limit what files will be modified by a compiler plugin
Change-Id: I4e3e8f5ca5e5b5b59b1bd067281f90940dd893b1
This commit is contained in:
@@ -31,9 +31,12 @@ class PluginHandler
|
||||
virtual void HandleTranslationUnit( ASTContext& context );
|
||||
static void registerPlugin( Plugin* (*create)( ASTContext&, Rewriter& ), const char* optionName, bool isRewriter );
|
||||
private:
|
||||
void handleOption( const string& option );
|
||||
void createPlugin( const string& name );
|
||||
DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation());
|
||||
ASTContext& context;
|
||||
Rewriter rewriter;
|
||||
string scope;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user