Fix accidental clang-formatting

This commit is contained in:
Christian Semmler
2023-11-28 09:05:47 -05:00
parent 0bf6b28aa6
commit f3c45fbd6f
7 changed files with 38 additions and 40 deletions

View File

@@ -5,25 +5,25 @@
class TestClass { class TestClass {
public: public:
TestClass(); TestClass();
virtual ~TestClass() override; virtual ~TestClass() override;
virtual MxResult Tickle() override; // vtable+08 virtual MxResult Tickle() override; // vtable+08
// FUNCTION: TEST 0x12345678 // FUNCTION: TEST 0x12345678
inline const char* ClassName() const // vtable+0c inline const char* ClassName() const // vtable+0c
{ {
// 0xabcd1234 // 0xabcd1234
return "TestClass"; return "TestClass";
} }
// FUNCTION: TEST 0xdeadbeef // FUNCTION: TEST 0xdeadbeef
inline MxBool IsA(const char* name) const override // vtable+10 inline MxBool IsA(const char* name) const override // vtable+10
{ {
return !strcmp(name, TestClass::ClassName()); return !strcmp(name, TestClass::ClassName());
} }
private: private:
int m_hello; int m_hello;
int m_hiThere; int m_hiThere;
}; };

View File

@@ -6,17 +6,17 @@
// FUNCTION: TEST 0x1234 // FUNCTION: TEST 0x1234
void function01() void function01()
{ {
// TODO // TODO
} }
// FUNCTION: TEST 0x2345 // FUNCTION: TEST 0x2345
void function02() void function02()
{ {
// TODO // TODO
} }
// FUNCTION: TEST 0x3456 // FUNCTION: TEST 0x3456
void function03() void function03()
{ {
// TODO // TODO
} }

View File

@@ -5,12 +5,12 @@
int no_offset_comment() int no_offset_comment()
{ {
static int dummy = 123; static int dummy = 123;
return -1; return -1;
} }
// FUNCTION: TEST 0xdeadbeef // FUNCTION: TEST 0xdeadbeef
void regular_ole_function() void regular_ole_function()
{ {
printf("hi there"); printf("hi there");
} }

View File

@@ -7,19 +7,19 @@
// FUNCTION: HELLO 0x5555 // FUNCTION: HELLO 0x5555
void different_modules() void different_modules()
{ {
// TODO // TODO
} }
// FUNCTION: TEST 0x2345 // FUNCTION: TEST 0x2345
// FUNCTION: TEST 0x1234 // FUNCTION: TEST 0x1234
void same_module() void same_module()
{ {
// TODO // TODO
} }
// FUNCTION: TEST 0x2002 // FUNCTION: TEST 0x2002
// FUNCTION: test 0x1001 // FUNCTION: test 0x1001
void same_case_insensitive() void same_case_insensitive()
{ {
// TODO // TODO
} }

View File

@@ -7,6 +7,6 @@ void short_function() { static char* msg = "oneliner"; }
// FUNCTION: TEST 0x5555 // FUNCTION: TEST 0x5555
void function_after_one_liner() void function_after_one_liner()
{ {
// This function comes after the previous that is on a single line. // This function comes after the previous that is on a single line.
// Do we report the offset for this one correctly? // Do we report the offset for this one correctly?
} }

View File

@@ -4,17 +4,17 @@
// FUNCTION: TEST 0x1001 // FUNCTION: TEST 0x1001
void function_order01() void function_order01()
{ {
// TODO // TODO
} }
// FUNCTION: TEST 0x1003 // FUNCTION: TEST 0x1003
void function_order03() void function_order03()
{ {
// TODO // TODO
} }
// FUNCTION: TEST 0x1002 // FUNCTION: TEST 0x1002
void function_order02() void function_order02()
{ {
// TODO // TODO
} }

View File

@@ -6,20 +6,18 @@
// FUNCTION: TEST 0x1234 // FUNCTION: TEST 0x1234
void curly_with_spaces() void curly_with_spaces()
{ {
static char* msg = "hello"; static char* msg = "hello";
} }
// FUNCTION: TEST 0x5555 // FUNCTION: TEST 0x5555
void weird_closing_curly() void weird_closing_curly()
{ {
int x = 123; int x = 123; }
}
// FUNCTION: HELLO 0x5656 // FUNCTION: HELLO 0x5656
void bad_indenting() void bad_indenting() {
if (0)
{ {
if (0) { int y = 5;
int y = 5; }}
}
}