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

Unified Diff: tools/clang/plugins/ChromeClassTester.h

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest Created 5 years, 7 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/ChromeClassTester.h
diff --git a/tools/clang/plugins/ChromeClassTester.h b/tools/clang/plugins/ChromeClassTester.h
index 963b90fac2e4ee81199a763014ac04840fdb63d2..ed65050d499d76424af42a19877829e5598f2cd9 100644
--- a/tools/clang/plugins/ChromeClassTester.h
+++ b/tools/clang/plugins/ChromeClassTester.h
@@ -37,6 +37,10 @@ class ChromeClassTester : public clang::ASTConsumer {
// namespace.
bool InBannedNamespace(const clang::Decl* record);
+ // Utility method for subclasses to check if the source location is in a
+ // directory the plugin should ignore.
+ bool InBannedDirectory(clang::SourceLocation loc);
+
// Utility method for subclasses to determine the namespace of the
// specified record, if any. Unnamed namespaces will be identified as
// "<anonymous namespace>".
@@ -64,7 +68,6 @@ class ChromeClassTester : public clang::ASTConsumer {
// deliberately ignore) in HandleTagDeclDefinition().
std::string GetNamespaceImpl(const clang::DeclContext* context,
const std::string& candidate);
- bool InBannedDirectory(clang::SourceLocation loc);
bool IsIgnoredType(const std::string& base_name);
// Attempts to determine the filename for the given SourceLocation.

Powered by Google App Engine
This is Rietveld 408576698