Closed
Bug 1114267
Opened 10 years ago
Closed 10 years ago
Enforce that MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS classes can only have trivial ctors and dtors
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla37
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(2 files)
7.16 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
3.67 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8539749 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8539751 -
Flags: review?(jmuizelaar)
Comment 3•10 years ago
|
||
Comment on attachment 8539749 [details] [diff] [review] Part 1: Add an analysis to force some classes to have trivial ctors and dtors Review of attachment 8539749 [details] [diff] [review]: ----------------------------------------------------------------- ::: build/clang-plugin/tests/TestTrivialCtorDtor.cpp @@ +9,5 @@ > + BadUserDefinedCtor() {} > +}; > + > +struct MOZ_TRIVIAL_CTOR_DTOR BadUserDefinedDtor { // expected-error {{class 'BadUserDefinedDtor' must have trivial constructors and destructors}} > + BadUserDefinedDtor() {} ~BadUserDefinedDtor
Attachment #8539749 -
Flags: review?(jmuizelaar) → review+
Updated•10 years ago
|
Attachment #8539751 -
Flags: review?(jmuizelaar) → review+
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6992f8b890ff https://hg.mozilla.org/mozilla-central/rev/682c3ff54fae
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•