diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-10-19 21:33:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-10-20 08:31:30 +0200 |
commit | 15dce20e8b97dbd0179f01910ca4d0027e80ff4e (patch) | |
tree | bc0a374f688bfed557c6428310d2cf04239225d1 /compilerplugins/clang/pluginhandler.hxx | |
parent | 2161abff3510dd591db30d94911241436c90c4d4 (diff) |
Fully ignore inappropriately named loplugins in unit-test mode
...even if they implement PPCallbacks, so filtering them out in
HandleTranslationUnit was ineffective.
Change-Id: I9df8103a50739f3176e6d63accfd0334da7faa9a
Reviewed-on: https://gerrit.libreoffice.org/43575
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/pluginhandler.hxx')
-rw-r--r-- | compilerplugins/clang/pluginhandler.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/pluginhandler.hxx b/compilerplugins/clang/pluginhandler.hxx index 9c3d0a49c839..63210fa11df4 100644 --- a/compilerplugins/clang/pluginhandler.hxx +++ b/compilerplugins/clang/pluginhandler.hxx @@ -43,6 +43,7 @@ private: void createPlugins( std::set< std::string > rewriters ); DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation()); CompilerInstance& compiler; + StringRef const mainFileName; Rewriter rewriter; std::set< SourceLocation > removals; std::string scope; |