aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/main.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-11-27 12:04:31 -0800
committerrtk0c <[email protected]>2022-11-27 12:04:31 -0800
commit182c8f8357739f905bbd721006480502435b6b43 (patch)
tree082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/main.cpp
parentb01ed99a1cd0c863c8709930658513c04dd70f61 (diff)
Update brace style to match rest of my projectscplt-imgui
Diffstat (limited to 'app/source/Cplt/main.cpp')
-rw-r--r--app/source/Cplt/main.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/source/Cplt/main.cpp b/app/source/Cplt/main.cpp
index 55c1019..2fef2bb 100644
--- a/app/source/Cplt/main.cpp
+++ b/app/source/Cplt/main.cpp
@@ -19,8 +19,7 @@ namespace fs = std::filesystem;
using namespace std::literals::string_literals;
using namespace std::literals::string_view_literals;
-static std::unique_ptr<RenderingBackend> CreateDefaultBackend()
-{
+static std::unique_ptr<RenderingBackend> CreateDefaultBackend() {
#if defined(_WIN32)
# if BUILD_CORE_WITH_DX12_BACKEND
if (auto backend = RenderingBackend::CreateDx12Backend()) {
@@ -71,8 +70,7 @@ static std::unique_ptr<RenderingBackend> CreateDefaultBackend()
return nullptr;
}
-static std::unique_ptr<RenderingBackend> CreateBackend(std::string_view option)
-{
+static std::unique_ptr<RenderingBackend> CreateBackend(std::string_view option) {
if (option == "default") {
return CreateDefaultBackend();
} else if (option == "opengl2") {
@@ -97,8 +95,7 @@ static std::unique_ptr<RenderingBackend> CreateBackend(std::string_view option)
}
#ifdef DOCTEST_CONFIG_DISABLE
-int main(int argc, char* argv[])
-{
+int main(int argc, char* argv[]) {
argparse::ArgumentParser parser;
parser.add_argument("--global-data-directory")
.help("Directory in which global data (such as recently used projects) are saved to. Use 'default' to use the default directory on each platform.")
@@ -147,8 +144,7 @@ int main(int argc, char* argv[])
fs::path path(dataDirOption);
GlobalStates::Init(std::move(path));
}
- DEFER
- {
+ DEFER {
GlobalStates::Shutdown();
};