From fedb10d0097257d34588717ee03cb91dcd8da324 Mon Sep 17 00:00:00 2001 From: Gnimuc Date: Sun, 27 Oct 2024 20:49:07 +0900 Subject: [PATCH] Fix clang-format --- lib/Interpreter/CppInterOp.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index 16d8e40d..1b7ae2cb 100644 --- a/lib/Interpreter/CppInterOp.cpp +++ b/lib/Interpreter/CppInterOp.cpp @@ -2855,8 +2855,8 @@ namespace Cpp { } bool InsertOrReplaceJitSymbol(compat::Interpreter& I, - const char* linker_mangled_name, - uint64_t address) { + const char* linker_mangled_name, + uint64_t address) { // FIXME: This approach is problematic since we could replace a symbol // whose address was already taken by clients. // @@ -2944,8 +2944,7 @@ namespace Cpp { bool InsertOrReplaceJitSymbol(const char* linker_mangled_name, uint64_t address) { - return InsertOrReplaceJitSymbol(getInterp(), linker_mangled_name, - address); + return InsertOrReplaceJitSymbol(getInterp(), linker_mangled_name, address); } std::string ObjToString(const char *type, void *obj) { @@ -3259,7 +3258,7 @@ namespace Cpp { // FIXME: Add optional arguments to the operator new. TCppObject_t Construct(compat::Interpreter& interp, TCppScope_t scope, - void* arena /*=nullptr*/) { + void* arena /*=nullptr*/) { auto* Class = (Decl*) scope; // FIXME: Diagnose. if (!HasDefaultConstructor(Class)) @@ -3284,7 +3283,7 @@ namespace Cpp { } void Destruct(compat::Interpreter& interp, TCppObject_t This, Decl* Class, - bool withFree) { + bool withFree) { if (auto wrapper = make_dtor_wrapper(interp, Class)) { (*wrapper)(This, /*nary=*/0, withFree); return;