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

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

Issue 1776673006: rewrite_to_chrome_style: Add some additional macro test cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « tools/clang/rewrite_to_chrome_style/tests/macros-expected.cc ('k') | 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/tests/macros-original.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/macros-original.cc b/tools/clang/rewrite_to_chrome_style/tests/macros-original.cc
index 3b6fdb55b68226afdd8460b3fd9230ff200764d4..ab684841ea60ae4f36a8f4d39e26c174e004dc31 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/macros-original.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/macros-original.cc
@@ -37,4 +37,17 @@ void F() {
}
}
+#define CALL_METHOD_FROM_MACRO() \
+ void callMethodFromMacro() { method(); } \
+ void pmethod() override {}
+
+struct WithMacroP {
+ virtual void pmethod() {}
+};
+
+struct WithMacro : public WithMacroP {
+ void method() {}
+ CALL_METHOD_FROM_MACRO();
+};
+
} // namespace blink
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/macros-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698