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

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

Issue 11143020: roll clang 163674:165787 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: warn again Created 8 years, 2 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 | « build/common.gypi ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/FindBadConstructs.cpp
diff --git a/tools/clang/plugins/FindBadConstructs.cpp b/tools/clang/plugins/FindBadConstructs.cpp
index b79a64dbd19959bc449719681212961ed39b382b..0d2c7cd179f372ba5368fe4ff2e149b5d55a86f4 100644
--- a/tools/clang/plugins/FindBadConstructs.cpp
+++ b/tools/clang/plugins/FindBadConstructs.cpp
@@ -29,7 +29,7 @@ using namespace clang;
namespace {
bool TypeHasNonTrivialDtor(const Type* type) {
- if (const CXXRecordDecl* cxx_r = type->getCXXRecordDeclForPointerType())
+ if (const CXXRecordDecl* cxx_r = type->getPointeeCXXRecordDecl())
return cxx_r->hasTrivialDestructor();
return false;
@@ -417,7 +417,7 @@ class FindBadConstructsAction : public PluginASTAction {
check_virtuals_in_implementations_ = false;
} else {
parsed = false;
- llvm::errs() << "Unknown argument: " << args[i] << "\n";
+ llvm::errs() << "Unknown clang plugin argument: " << args[i] << "\n";
}
}
« no previous file with comments | « build/common.gypi ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698