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

Unified Diff: tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp

Issue 2595213002: Tweaking lists of method names to treat in a special way. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
diff --git a/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp b/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
index e142dc2639c45afd7f2c4de72e8e0d8feb3899b8..3e18a280c40e9085490378d33d6ecff3d39bc06c 100644
--- a/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
+++ b/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
@@ -220,6 +220,7 @@ bool IsBlacklistedFunction(const clang::FunctionDecl& decl) {
bool IsBlacklistedMethodName(llvm::StringRef name) {
static const char* kBlacklistedNames[] = {
+ "hash",
"lock", "unlock", "try_lock",
"begin", "end", "rbegin", "rend",
};
@@ -349,6 +350,7 @@ bool ShouldPrefixFunctionName(const std::string& old_method_name) {
"error",
"fileUtilities",
"font",
+ "frameBlameContext",
"iconURL",
"inputMethodController",
"inputType",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698