diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-05-03 16:40:51 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-06 16:49:36 +0200 |
commit | a0da672521f806d11f9922601328de3ab0542187 (patch) | |
tree | 33d765973014ef4955aae252551a52fd5cab341f /compilerplugins/clang/plugin.hxx | |
parent | 6f16cfb5a661c0a4b13ed18c9246d8830ca118b5 (diff) |
ignore already seen locations in compiler plugins
Change-Id: Icba8dfa61aee7237af569b2414b1cf4ce93ca476
Diffstat (limited to 'compilerplugins/clang/plugin.hxx')
-rw-r--r-- | compilerplugins/clang/plugin.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx index da336818cccb..52f6273e16e2 100644 --- a/compilerplugins/clang/plugin.hxx +++ b/compilerplugins/clang/plugin.hxx @@ -53,6 +53,7 @@ class Plugin bool ignoreLocation( const Decl* decl ); bool ignoreLocation( const Stmt* stmt ); CompilerInstance& compiler; + set< SourceLocation > alreadySeen; private: static void registerPlugin( Plugin* (*create)( CompilerInstance&, Rewriter& ), const char* optionName, bool isRewriter ); template< typename T > static Plugin* createHelper( CompilerInstance& compiler, Rewriter& rewriter ); |