summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/plugin.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-24 12:47:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-24 12:48:17 +0200
commita74193306a10a98902d192b8f7cecb92b4817c23 (patch)
tree6747a708a603ae9cdb53bd4dd3224bad9d08a41b /compilerplugins/clang/plugin.hxx
parent5406e237ea2ec534988da31104f10188b001ad75 (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.hxx5
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 );