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

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/macros-expected.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 | « no previous file | tools/clang/rewrite_to_chrome_style/tests/macros-original.cc » ('j') | 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-expected.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/macros-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/macros-expected.cc
index f03e3a310445f79c4242c27b205e03588acdf393..2dcda6fe9855b09072a94cc92947438136ec220a 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/macros-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/macros-expected.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 | « no previous file | tools/clang/rewrite_to_chrome_style/tests/macros-original.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698