summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/pluginhandler.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/pluginhandler.hxx')
-rw-r--r--compilerplugins/clang/pluginhandler.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/clang/pluginhandler.hxx b/compilerplugins/clang/pluginhandler.hxx
index f7a399672c5d..e2ca4075d33d 100644
--- a/compilerplugins/clang/pluginhandler.hxx
+++ b/compilerplugins/clang/pluginhandler.hxx
@@ -68,6 +68,8 @@ public:
// Is all code that could see `decl` defined in this TU?
bool isAllRelevantCodeDefined(NamedDecl const * decl);
+ void enableTreeWideAnalysisMode() { treeWideAnalysisMode = true; }
+
private:
void handleOption( const std::string& option );
void createPlugins( std::set< std::string > rewriters );
@@ -81,6 +83,8 @@ private:
std::string warningsOnly;
bool warningsAsErrors;
bool debugMode = false;
+ //// Used by the tree-wide analysis plugins like unusedmethods, etc.
+ bool treeWideAnalysisMode = false;
std::vector<std::pair<char const*, char const*>> mvModifiedRanges;
// Used internally by isAllRelevantCodeDefined: