Skip to content

Commit

Permalink
Merge pull request FEX-Emu#3577 from pmatos/Reformat2
Browse files Browse the repository at this point in the history
Reformat until fixed-point
  • Loading branch information
Sonicadvance1 authored Apr 15, 2024
2 parents 7e97db8 + 905aa93 commit 07e58f8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions FEXCore/include/FEXCore/Utils/SignalScopeGuards.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ static auto GuardSignalDeferringSectionWithFallback(MutexType& mutex, FEXCore::C
:
ExtraGuard {ScopedSignalMasker {Mask}}
#else
:
ExtraGuard {}
:
ExtraGuard {}
#endif
};
scope_guard.lock = LockType<MutexType> {mutex};
Expand Down
2 changes: 1 addition & 1 deletion Source/Tools/CommonTools/Linux/Utils/ELFContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ELFContainer {
return DynamicLinker;
}

const fextl::vector<char const*>* GetNecessaryLibs() const {
const fextl::vector<const char*>* GetNecessaryLibs() const {
return &NecessaryLibs;
}

Expand Down
17 changes: 8 additions & 9 deletions unittests/ThunkLibs/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,15 +637,14 @@ TEST_CASE_METHOD(Fixture, "LayoutWrappers") {
"template<typename> struct fex_gen_type {};\n"
"template<> struct fex_gen_type<A> : fexgen::emit_layout_wrappers {};\n";
const auto output = run_thunkgen_host(struct_def, code, guest_abi);
CHECK_THAT(output,
matches(classTemplateSpecializationDecl(
hasName("guest_layout"), hasAnyTemplateArgument(refersToType(recordType(hasDeclaration(recordDecl(hasName("A")))))),
// The member "data" exists and is defined to a struct...
has(fieldDecl(hasName("data"), hasType(hasCanonicalType(hasDeclaration(decl(
// ... the members of which also use guest_layout
has(fieldDecl(hasName("a"), hasType(asString("guest_layout<" CLANG_STRUCT_PREFIX "B "
"*>")))),
has(fieldDecl(hasName("b"), hasType(asString("guest_layout<int32_t>")))))))))))));
CHECK_THAT(output, matches(classTemplateSpecializationDecl(
hasName("guest_layout"), hasAnyTemplateArgument(refersToType(recordType(hasDeclaration(recordDecl(hasName("A")))))),
// The member "data" exists and is defined to a struct...
has(fieldDecl(hasName("data"), hasType(hasCanonicalType(hasDeclaration(decl(
// ... the members of which also use guest_layout
has(fieldDecl(hasName("a"), hasType(asString("guest_layout<" CLANG_STRUCT_PREFIX "B "
"*>")))),
has(fieldDecl(hasName("b"), hasType(asString("guest_layout<int32_t>")))))))))))));
CHECK_THAT(output, guest_converter_defined);

CHECK_THAT(output, host_layout_is_trivial);
Expand Down
8 changes: 5 additions & 3 deletions unittests/Utilities/DeleteOldSHMRegions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ static bool ctime_is_old(uint64_t ctime) {
}

int main() {
// key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap
// 0 360448 777 4096 165187 165187 0 1002 1002 1002 1002 1679659857 1679659857 1679659857 4096 0 0 32769
//777 4096 153814 153814 0 1002 1002 1002 1002 1676490841 1676490841 1676490841 0 4096
// clang-format off
// key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap
// 0 360448 777 4096 165187 165187 0 1002 1002 1002 1002 1679659857 1679659857 1679659857 4096 0
// 0 32769 777 4096 153814 153814 0 1002 1002 1002 1002 1676490841 1676490841 1676490841 0 4096
// clang-format on
std::ifstream fs {"/proc/sysvipc/shm", std::fstream::binary};
std::string Line;

Expand Down

0 comments on commit 07e58f8

Please sign in to comment.