| Index: Source/bindings/tests/results/core/V8TestInterfaceAccessors.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8TestInterfaceAccessors.cpp b/Source/bindings/tests/results/core/V8TestInterfaceAccessors.cpp
|
| index f8c5435319782f2fd8124e6fb4b7c1ae4d96fd65..8ce54f41381681e3ee7983d6f04000a7c161e895 100644
|
| --- a/Source/bindings/tests/results/core/V8TestInterfaceAccessors.cpp
|
| +++ b/Source/bindings/tests/results/core/V8TestInterfaceAccessors.cpp
|
| @@ -19,7 +19,16 @@
|
|
|
| namespace blink {
|
|
|
| +// Suppress warning: global constructors, because struct WrapperTypeInfo is trivial
|
| +// and does not depend on another global objects.
|
| +#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wglobal-constructors"
|
| +#endif
|
| const WrapperTypeInfo V8TestInterfaceAccessors::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceAccessors::domTemplate, V8TestInterfaceAccessors::refObject, V8TestInterfaceAccessors::derefObject, V8TestInterfaceAccessors::trace, 0, 0, V8TestInterfaceAccessors::preparePrototypeObject, V8TestInterfaceAccessors::installConditionallyEnabledProperties, "TestInterfaceAccessors", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
|
| +#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| +#pragma clang diagnostic pop
|
| +#endif
|
|
|
| // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfaceAccessors.h.
|
| // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
|
| @@ -128,9 +137,18 @@ static void doNotExposeJSAccessorAttributeAttributeSetterCallback(v8::Local<v8::
|
|
|
| } // namespace TestInterfaceAccessorsV8Internal
|
|
|
| +// Suppress warning: global constructors, because AttributeConfiguration is trivial
|
| +// and does not depend on another global objects.
|
| +#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wglobal-constructors"
|
| +#endif
|
| static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAccessorsAttributes[] = {
|
| {"doNotExposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::doNotExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal::doNotExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
|
| };
|
| +#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| +#pragma clang diagnostic pop
|
| +#endif
|
|
|
| static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessorsAccessors[] = {
|
| {"noExposeJSAccessorAttribute", TestInterfaceAccessorsV8Internal::noExposeJSAccessorAttributeAttributeGetterCallback, TestInterfaceAccessorsV8Internal::noExposeJSAccessorAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
|
|