Closed
Bug 1319330
Opened 8 years ago
Closed 8 years ago
Clang complains bad implicit conversion constructor for the header file exception of VS 2015
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(firefox53 fixed)
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: ting, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
1.28 KB,
patch
|
nika
:
review+
ting
:
feedback+
|
Details | Diff | Splinter Review |
While working on bug 1316545 I ran into this:
0:22.67 error(clang): 'error' diagnostics seen but not expected:
0:22.67 File C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception Line 142: bad implicit conversion constructor for 'bad_exception'
0:22.67 File C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception Line 175: bad implicit conversion constructor for 'bad_alloc'
0:22.67 error(clang): 'note' diagnostics seen but not expected:
0:22.67 File C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception Line 142: consider adding the explicit keyword to the constructor
0:22.67 File C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception Line 175: consider adding the explicit keyword to the constructor
I workarounded it by adding "explicit" to my local file, but for taskcluster probably it requires customized built vs2015 on tooltool.
Surely there must be a way to make system headers exempt from static analysis requirements, no?
Flags: needinfo?(ehsan)
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(ehsan)
Assignee | ||
Comment 2•8 years ago
|
||
Ting-Yu, can you please test this patch?
Attachment #8813249 -
Flags: review?(michael)
Attachment #8813249 -
Flags: feedback?(janus926)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ehsan
Updated•8 years ago
|
Attachment #8813249 -
Flags: review?(michael) → review+
Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8813249 [details] [diff] [review]
Ignore system headers for the implicit constructor check
Yes, it works.
Attachment #8813249 -
Flags: feedback?(janus926) → feedback+
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cbbb7be5fe57
Ignore system headers for the implicit constructor check; r=mystor
Comment 5•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•7 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
•