ladybird/Userland/Libraries/LibWeb/WebIDL
Daniel Bertalan c62240aa80 Everywhere: Warn on function definitions without prototypes
If no header includes the prototype of a function, then it cannot be
used from outside the translation unit it was defined in. In that case,
it should be marked as `static`, in order to avoid possible ODR
problems, unnecessary exported symbols, and allow the compiler to better
optimize those.

If this warning triggers in a function defined in a header, `inline`
needs to be added, otherwise if the header is included in more than one
TU, it will fail to link with a duplicate definition error.

The reason this diff got so big is that Lagom-only code wasn't built
with this flag even in Serenity times.
2024-07-17 21:51:29 +02:00
..
AbstractOperations.cpp LibWeb: Fix a silly mistake for bitLength 64 in conversion to int 2024-03-30 21:21:23 +01:00
AbstractOperations.h LibWeb: Delete LegacyPlatformObject and move behavior to PlatformObject 2024-01-12 09:11:18 +01:00
Buffers.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
Buffers.h LibWeb: Add const qualified BufferableObjectBase::raw_object 2024-05-26 07:48:37 +02:00
CallbackType.cpp LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
CallbackType.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
DOMException.cpp LibWeb: Remove Bindings/Forward.h from LibWeb/Forward.h 2024-04-27 18:29:35 -04:00
DOMException.h LibJS+LibWeb: Add JS::Value constructor for `JS::Handle<T>` 2023-12-19 09:21:55 -07:00
DOMException.idl LibWeb: Port DOMException interface from DeprecatedString to String 2023-09-06 11:44:45 -04:00
ExceptionOr.h LibWeb: Add and use a helper to reject a promise with an exception 2024-03-08 14:14:57 -05:00
Function.idl LibWeb: Add IDL definition for 'Function' 2023-06-23 13:27:29 +02:00
ObservableArray.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ObservableArray.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
OverloadResolution.cpp LibWeb: Treat BufferSource as a DataView/ArrayBuffer/TA in IDL overloads 2023-12-30 18:50:29 +01:00
OverloadResolution.h LibWeb: Move IDLOverloadResolution from Bindings/ to WebIDL/ 2022-09-24 19:31:39 +01:00
Promise.cpp LibJS+LibWeb: Use new Cell::Visitor helpers to avoid manual iteration 2024-04-16 07:40:01 +02:00
Promise.h LibWeb: Use JS::HeapFunction for WebIDL promise reaction steps 2024-04-03 18:14:33 +02:00
Tracing.cpp Ladybird+LibWeb: Add optional IDL call tracing 2024-04-16 16:57:06 +02:00
Tracing.h Everywhere: Warn on function definitions without prototypes 2024-07-17 21:51:29 +02:00
Types.h LibWeb: Add IDL integer typedefs 2024-01-02 10:01:26 +01:00