Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -18,7 +18,10 @@ static bool setFlag = false;
struct MockGLObject {
using Type = bool;
static const Type Default;
static Type Get() { getFlag = true; return true; }
static Type Get() {
getFlag = true;
return true;
}
static void Set(const Type&) { setFlag = true; }
};
@@ -45,10 +48,10 @@ TEST(GLObject, Value) {
}
TEST(GLObject, Store) {
gl::HeadlessBackend backend { { 256, 256 } };
gfx::BackendScope scope { backend };
gl::HeadlessBackend backend{{256, 256}};
gfx::BackendScope scope{backend};
gl::Context context{ backend };
gl::Context context{backend};
EXPECT_TRUE(context.empty());
gl::UniqueTexture texture = context.createUniqueTexture();