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

Unified Diff: tools/clang/plugins/tests/inline_ctor.h

Issue 1504033010: Follow macro invocations when checking if a violation happened in a .cc file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Check every file in the macro instantiation chain. Created 5 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 | « tools/clang/plugins/Options.h ('k') | tools/clang/plugins/tests/inline_ctor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/tests/inline_ctor.h
diff --git a/tools/clang/plugins/tests/inline_ctor.h b/tools/clang/plugins/tests/inline_ctor.h
index 1ab1589c87979f473a94710afbdb31ca48e65140..2b9beb974ee9aa1027f384a6b8eb096d3376b526 100644
--- a/tools/clang/plugins/tests/inline_ctor.h
+++ b/tools/clang/plugins/tests/inline_ctor.h
@@ -18,6 +18,19 @@ class InlineCtorsArentOKInHeader {
std::vector<std::string> two_;
};
+#define INLINE_CTORS_IN_A_MACRO(CLASS_NAME) \
+ class CLASS_NAME { \
+ public: \
+ CLASS_NAME() {} \
+ ~CLASS_NAME() {} \
+ \
+ private: \
+ std::vector<int> one_; \
+ std::vector<std::string> two_; \
+ }
+INLINE_CTORS_IN_A_MACRO(InlineCtorsBehindAMacroArentOKInHeader);
+MACRO_FROM_CPP;
Nico 2015/12/10 14:22:35 Do we need the "macro defined in cpp file but used
Jeffrey Yasskin 2015/12/10 16:20:00 It's pretty obscure, but the inline-virtuals patch
+
class DeletedMembersInHeaderAreOKThough {
public:
DeletedMembersInHeaderAreOKThough() = delete;
« no previous file with comments | « tools/clang/plugins/Options.h ('k') | tools/clang/plugins/tests/inline_ctor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698