make it possible to limit what files will be modified by a compiler plugin

Change-Id: I4e3e8f5ca5e5b5b59b1bd067281f90940dd893b1
This commit is contained in:
Luboš Luňák
2013-02-09 18:47:55 +01:00
parent 8f1a01ad00
commit 857a392654
4 changed files with 93 additions and 25 deletions

View File

@@ -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;
};
/**