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

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

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 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/plugins/FindBadConstructsConsumer.cpp ('k') | tools/clang/scripts/plugin_flags.py » ('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 d053b2f57d6acdfdfa14227967e6b88e9edfe87a..9c6c286c349ca350e7e0ae32b414be9b563121fe 100644
--- a/tools/clang/plugins/tests/inline_ctor.h
+++ b/tools/clang/plugins/tests/inline_ctor.h
@@ -18,4 +18,36 @@ class InlineCtorsArentOKInHeader {
std::vector<std::string> two_;
};
+class DeletedMembersInHeaderAreOKThough {
+ public:
+ DeletedMembersInHeaderAreOKThough() = delete;
+ ~DeletedMembersInHeaderAreOKThough() = delete;
+ DeletedMembersInHeaderAreOKThough(const DeletedMembersInHeaderAreOKThough&) =
+ delete;
+
+ private:
+ std::vector<int> one_;
+ std::vector<std::string> two_;
+};
+
+class ExplicitlyInlinedIsAlsoOK {
+ ExplicitlyInlinedIsAlsoOK();
+ ~ExplicitlyInlinedIsAlsoOK();
+ ExplicitlyInlinedIsAlsoOK(const ExplicitlyInlinedIsAlsoOK&);
+
+ private:
+ std::vector<int> one_;
+ std::vector<std::string> two_;
+};
+
+inline ExplicitlyInlinedIsAlsoOK::ExplicitlyInlinedIsAlsoOK() {
+}
+
+inline ExplicitlyInlinedIsAlsoOK::~ExplicitlyInlinedIsAlsoOK() {
+}
+
+inline ExplicitlyInlinedIsAlsoOK::ExplicitlyInlinedIsAlsoOK(
+ const ExplicitlyInlinedIsAlsoOK&) {
+}
+
#endif // INLINE_CTOR_H_
« no previous file with comments | « tools/clang/plugins/FindBadConstructsConsumer.cpp ('k') | tools/clang/scripts/plugin_flags.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698