Skip to content

Commit 4aa5fd2

Browse files
Disable a bugprone-move-forwarding-reference error when running static analysis against jsi.h (#934)
1 parent 2edd56e commit 4aa5fd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ReactCommon/jsi/jsi/jsi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,9 @@ class JSI_EXPORT Value {
937937
std::is_base_of<String, T>::value ||
938938
std::is_base_of<Object, T>::value,
939939
"Value cannot be implicitly move-constructed from this type");
940+
#ifndef __clang_analyzer__ // TODO(macOS GH#774) Disable [bugprone-move-forwarding-reference] when running clang static analysis
940941
new (&data_.pointer) T(std::move(other));
942+
#endif // __clang_analyzer__
941943
}
942944

943945
/// Value("foo") will treat foo as a bool. This makes doing that a

0 commit comments

Comments
 (0)