compilerplugins: move isUnoIncludeFile to base class

to reduce copy-pasted code

Change-Id: I7728d85dea7d0161998c326d6648ca681a8250d0
This commit is contained in:
Noel Grandin
2014-06-24 12:47:28 +02:00
parent 5406e237ea
commit a74193306a
6 changed files with 31 additions and 119 deletions

View File

@@ -73,6 +73,11 @@ class Plugin
*/
const Stmt* parentStmt( const Stmt* stmt );
Stmt* parentStmt( Stmt* stmt );
/**
Checks if the location is inside an UNO file, more specifically, if it forms part of the URE stable interface,
which is not allowed to be changed.
*/
bool isInUnoIncludeFile(SourceLocation spellingLocation) const;
private:
static void registerPlugin( Plugin* (*create)( const InstantiationData& ), const char* optionName, bool isPPCallback, bool byDefault );
template< typename T > static Plugin* createHelper( const InstantiationData& data );