diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 15:01:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-22 08:46:34 +0200 |
commit | 0281b187752a6da62b801f4a4acf5cf74c2c31f2 (patch) | |
tree | 1a9dbdf2d44009aec94acc28b4b8716e4afe5093 /compilerplugins/clang/plugin.hxx | |
parent | 827aa375ddc89cbc468267cbf94a8cea1ef4215c (diff) |
make oncevar plugin ignore methods with #ifdef-ery
Change-Id: I8a9cf2c4b81b95bf654f7e90306328d72e3d3408
Reviewed-on: https://gerrit.libreoffice.org/40280
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/plugin.hxx')
-rw-r--r-- | compilerplugins/clang/plugin.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx index 92f796f0f7c8..87a7d22ff222 100644 --- a/compilerplugins/clang/plugin.hxx +++ b/compilerplugins/clang/plugin.hxx @@ -80,6 +80,9 @@ protected: static void normalizeDotDotInFilePath(std::string&); static bool isUnitTestMode(); + + bool containsPreprocessingConditionalInclusion(SourceRange range); + private: static void registerPlugin( Plugin* (*create)( const InstantiationData& ), const char* optionName, bool isPPCallback, bool byDefault ); template< typename T > static Plugin* createHelper( const InstantiationData& data ); |