Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1057)

Unified Diff: tools/clang/plugins/FindBadConstructsAction.cpp

Issue 1504033010: Follow macro invocations when checking if a violation happened in a .cc file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Check every file in the macro instantiation chain. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/plugins/FindBadConstructsAction.cpp
diff --git a/tools/clang/plugins/FindBadConstructsAction.cpp b/tools/clang/plugins/FindBadConstructsAction.cpp
index 9fe660526ca985904341deb932f269612e705ad0..443eecc6884a4ba9fb540ef9d585a93706bd6d55 100644
--- a/tools/clang/plugins/FindBadConstructsAction.cpp
+++ b/tools/clang/plugins/FindBadConstructsAction.cpp
@@ -59,6 +59,8 @@ bool FindBadConstructsAction::ParseArgs(const CompilerInstance& instance,
options_.with_ast_visitor = true;
} else if (args[i] == "check-templates") {
options_.check_templates = true;
+ } else if (args[i] == "follow-macro-expansion") {
+ options_.follow_macro_expansion = true;
} else {
parsed = false;
llvm::errs() << "Unknown clang plugin argument: " << args[i] << "\n";

Powered by Google App Engine
This is Rietveld 408576698