Closed
Bug 1625152
Opened 6 years ago
Closed 3 years ago
`MOZ_CAN_RUN_SCRIPT` analysis warns for std::is_destructible on OSX
Categories
(Developer Infrastructure :: Source Code Analysis, defect, P5)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: anba, Assigned: andi)
References
Details
Attachments
(1 obsolete file)
Replacing mozilla::IsDestructible with std::is_destructible in xpcom/base/nsISupportsImpl.h results in the following errors on OSX:
[task 2020-03-25T18:39:52.026Z] 18:39:52 ERROR - /builds/worker/fetches/clang/bin/../include/c++/v1/type_traits:2225:51: error: arguments must all be strong refs or caller's parameters when calling a function marked as MOZ_CAN_RUN_SCRIPT (including the implicit object argument). '_VSTD::declval<_Tp1&>()' is neither.
[task 2020-03-25T18:39:52.026Z] 18:39:52 INFO - typename __is_destructible_apply<decltype(_VSTD::declval<_Tp1&>().~_Tp1())>::type
[task 2020-03-25T18:39:52.026Z] 18:39:52 INFO - ^~~~~~~~~~~~~~~~~~~~~~~
[task 2020-03-25T18:39:52.026Z] 18:39:52 INFO - /builds/worker/fetches/clang/bin/../include/c++/v1/__config:758:15: note: expanded from macro '_VSTD'
[task 2020-03-25T18:39:52.026Z] 18:39:52 INFO - #define _VSTD std::_LIBCPP_ABI_NAMESPACE
[task 2020-03-25T18:39:52.026Z] 18:39:52 INFO - ^
and
[task 2020-03-25T18:39:52.027Z] 18:39:52 ERROR - /builds/worker/fetches/clang/bin/../include/c++/v1/type_traits:2225:51: error: functions marked as MOZ_CAN_RUN_SCRIPT can only be called from functions also marked as MOZ_CAN_RUN_SCRIPT
[task 2020-03-25T18:39:52.029Z] 18:39:52 INFO - typename __is_destructible_apply<decltype(_VSTD::declval<_Tp1&>().~_Tp1())>::type
[task 2020-03-25T18:39:52.029Z] 18:39:52 INFO - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2020-03-25T18:39:52.029Z] 18:39:52 INFO - /builds/worker/fetches/clang/bin/../include/c++/v1/__config:758:15: note: expanded from macro '_VSTD'
[task 2020-03-25T18:39:52.029Z] 18:39:52 INFO - #define _VSTD std::_LIBCPP_ABI_NAMESPACE
[task 2020-03-25T18:39:52.029Z] 18:39:52 INFO - ^
Comment 1•6 years ago
|
||
The priority flag is not set for this bug.
:andi, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(bpostelnicu)
That's really weird. Why are we running CanRunScriptChecker on the decltype(...) function being used within the standard library?
| Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(bpostelnicu)
Priority: -- → P5
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•3 years ago
|
Severity: normal → S3
| Assignee | ||
Comment 3•3 years ago
|
||
| Assignee | ||
Updated•3 years ago
|
Assignee: nobody → bpostelnicu
Updated•3 years ago
|
Attachment #9326583 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•3 years ago
|
||
This is no longer needed.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•