mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Meta: Enforce newlines around namespaces
This has come up several times during code review, so let's just enforce it using a new clang-format 20 option.
This commit is contained in:
parent
ca9f3673c5
commit
7280ed6312
Notes:
github-actions[bot]
2025-05-14 08:06:48 +00:00
Author: https://github.com/trflynn89
Commit: 7280ed6312
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4715
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/InvalidUsernameException
206 changed files with 448 additions and 0 deletions
|
@ -8,9 +8,11 @@
|
|||
#include <AK/Utf16View.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
jstring JavaEnvironment::jstring_from_ak_string(String const& str)
|
||||
{
|
||||
auto as_utf16 = MUST(AK::utf8_to_utf16(str.code_points()));
|
||||
return m_env->NewString(as_utf16.data(), as_utf16.size());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <jni.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
class JavaEnvironment {
|
||||
public:
|
||||
JavaEnvironment(JavaVM* vm)
|
||||
|
@ -45,5 +46,6 @@ private:
|
|||
JNIEnv* m_env = nullptr;
|
||||
bool m_did_attach_thread = false;
|
||||
};
|
||||
|
||||
}
|
||||
extern JavaVM* global_vm;
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <jni.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
static Gfx::BitmapFormat to_gfx_bitmap_format(i32 f)
|
||||
{
|
||||
switch (f) {
|
||||
|
@ -142,4 +143,5 @@ NonnullRefPtr<WebView::WebContentClient> WebViewImplementationNative::bind_web_c
|
|||
|
||||
return new_client;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <jni.h>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
class WebViewImplementationNative : public WebView::ViewImplementation {
|
||||
public:
|
||||
WebViewImplementationNative(jobject thiz);
|
||||
|
@ -42,4 +43,5 @@ private:
|
|||
jobject m_java_instance = nullptr;
|
||||
Web::DevicePixelSize m_viewport_size;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue