diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-24 12:47:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-24 12:48:17 +0200 |
commit | a74193306a10a98902d192b8f7cecb92b4817c23 (patch) | |
tree | 6747a708a603ae9cdb53bd4dd3224bad9d08a41b /compilerplugins/clang/plugin.hxx | |
parent | 5406e237ea2ec534988da31104f10188b001ad75 (diff) |
compilerplugins: move isUnoIncludeFile to base class
to reduce copy-pasted code
Change-Id: I7728d85dea7d0161998c326d6648ca681a8250d0
Diffstat (limited to 'compilerplugins/clang/plugin.hxx')
-rw-r--r-- | compilerplugins/clang/plugin.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx index afdecdde5da6..867396cdcb43 100644 --- a/compilerplugins/clang/plugin.hxx +++ b/compilerplugins/clang/plugin.hxx @@ -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 ); |