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

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

Issue 2325563005: s/Value/value/g for type trait value field in WebGLImageConversion.cpp (Closed)
Patch Set: Created 4 years, 3 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/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 600adeb807171fb69775d72155cf35aa883edac9..2eeedf7620163992b44ca4cd38ebde81a66ac5b0 100644
--- a/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
+++ b/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
@@ -644,12 +644,13 @@ int main(int argc, const char* argv[]) {
// };
// matches |x|, |y|, and |VALUE|.
auto field_decl_matcher = id("decl", fieldDecl(in_blink_namespace));
- auto is_type_trait_value =
- varDecl(hasName("value"), hasStaticStorageDuration(), isPublic(),
- hasType(isConstQualified()), hasType(type(anyOf(
- booleanType(), enumType()))),
- unless(hasAncestor(recordDecl(
- has(cxxMethodDecl(isUserProvided(), isInstanceMethod()))))));
+ auto is_type_trait_value = varDecl(
+ hasStaticStorageDuration(), isPublic(),
+ anyOf(hasName("value"), hasName("Value")),
+ hasType(type(anyOf(booleanType(), enumType()))),
+ hasType(isConstQualified()),
+ unless(hasAncestor(recordDecl(
+ has(cxxMethodDecl(isUserProvided(), isInstanceMethod()))))));
auto var_decl_matcher =
id("decl", varDecl(in_blink_namespace, unless(is_type_trait_value)));
auto enum_member_decl_matcher =

Powered by Google App Engine
This is Rietveld 408576698