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

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/functions-original.cc

Issue 2271203004: Tweak |in_blink_namespace|, to look at ancestors *and also* at qualifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-style-same-type-and-method-name
Patch Set: Using hasTopLevelPrefix instead of hasPrefix. Created 4 years, 4 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/tests/functions-original.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/functions-original.cc b/tools/clang/rewrite_to_chrome_style/tests/functions-original.cc
index 14530c6570af943f1a6321c360e97ce1bc7fef05..eb5e0ecbde75ffaf699e7275f6747895ebff304e 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/functions-original.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/functions-original.cc
@@ -36,8 +36,15 @@ void F() {
int (*functionPointer)(int, int) = &testFunctionThatTakesTwoInts;
}
+void bug640688(int); // Declaration within blink namespace.
+
} // namespace blink
+// Definition outside of blink namespace.
+void blink::bug640688(int myParam) {
+ char myVariable = 'c';
+}
+
using blink::testFunctionThatTakesTwoInts;
void G() {

Powered by Google App Engine
This is Rietveld 408576698