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

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

Issue 1810243002: Check for unstable types in IPC messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 8 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
« no previous file with comments | « tools/clang/plugins/CheckIPCVisitor.cpp ('k') | tools/clang/plugins/FindBadConstructsConsumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/FindBadConstructsAction.cpp
diff --git a/tools/clang/plugins/FindBadConstructsAction.cpp b/tools/clang/plugins/FindBadConstructsAction.cpp
index ad9fc5582638b91b8a8aec329d4b8b1cc6b2ce23..f857ac2bbe88810b440bab4a0af02bba26773705 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_.Traverse(context);
}
private:
@@ -63,6 +63,8 @@ bool FindBadConstructsAction::ParseArgs(const CompilerInstance& instance,
options_.check_implicit_copy_ctors = true;
} else if (args[i] == "no-realpath") {
options_.no_realpath = true;
+ } else if (args[i] == "check-ipc") {
+ options_.check_ipc = true;
} else {
parsed = false;
llvm::errs() << "Unknown clang plugin argument: " << args[i] << "\n";
« no previous file with comments | « tools/clang/plugins/CheckIPCVisitor.cpp ('k') | tools/clang/plugins/FindBadConstructsConsumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698