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

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

Issue 1665363002: Clang plugin to check that unstable types are not used in IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos Created 4 years, 10 months 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 e8f103a6d93bc7771ac311611f16c7fbce95fa46..119d0f462ed4a77cc9beb998dd7283a290884a57 100644
--- a/tools/clang/plugins/FindBadConstructsAction.cpp
+++ b/tools/clang/plugins/FindBadConstructsAction.cpp
@@ -21,7 +21,7 @@ class PluginConsumer : public ASTConsumer {
: visitor_(*instance, options) {}
void HandleTranslationUnit(clang::ASTContext& context) override {
- visitor_.TraverseDecl(context.getTranslationUnitDecl());
+ visitor_.Visit(context);
}
private:
@@ -61,6 +61,8 @@ bool FindBadConstructsAction::ParseArgs(const CompilerInstance& instance,
options_.follow_macro_expansion = true;
} else if (args[i] == "check-implicit-copy-ctors") {
options_.check_implicit_copy_ctors = true;
+ } else if (args[i] == "check-ipc") {
+ options_.check_ipc = true;
} else {
parsed = false;
llvm::errs() << "Unknown clang plugin argument: " << args[i] << "\n";

Powered by Google App Engine
This is Rietveld 408576698