Disable a bugprone-move-forwarding-reference error when running static analysis against jsi.h (#934)
This commit is contained in:
Родитель
2edd56ed14
Коммит
4aa5fd2f26
|
@ -937,7 +937,9 @@ class JSI_EXPORT Value {
|
|||
std::is_base_of<String, T>::value ||
|
||||
std::is_base_of<Object, T>::value,
|
||||
"Value cannot be implicitly move-constructed from this type");
|
||||
#ifndef __clang_analyzer__ // TODO(macOS GH#774) Disable [bugprone-move-forwarding-reference] when running clang static analysis
|
||||
new (&data_.pointer) T(std::move(other));
|
||||
#endif // __clang_analyzer__
|
||||
}
|
||||
|
||||
/// Value("foo") will treat foo as a bool. This makes doing that a
|
||||
|
|
Загрузка…
Ссылка в новой задаче