Disable a bugprone-move-forwarding-reference error when running static analysis against jsi.h (#934)

This commit is contained in:
anandrajeswaran 2021-12-20 16:29:46 -08:00 коммит произвёл GitHub
Родитель 2edd56ed14
Коммит 4aa5fd2f26
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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