From f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 14:49:26 +0800 Subject: format * format * Minor test fixes * enable checking cpp format in ci --- examples/example-base/test-base.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'examples/example-base/test-base.h') diff --git a/examples/example-base/test-base.h b/examples/example-base/test-base.h index cdd72c580..3f600eae7 100644 --- a/examples/example-base/test-base.h +++ b/examples/example-base/test-base.h @@ -1,22 +1,26 @@ #pragma once -#include "slang.h" #include "slang-com-ptr.h" +#include "slang.h" #include "source/core/slang-string-util.h" using Slang::ComPtr; -class TestBase { +class TestBase +{ public: // Parses command line options. This example only has one option for testing purpose. int parseOption(int argc, char** argv); - void printEntrypointHashes(int entryPointCount, int targetCount, ComPtr& composedProgram); + void printEntrypointHashes( + int entryPointCount, + int targetCount, + ComPtr& composedProgram); bool isTestMode() const { return m_isTestMode; } private: - bool m_isTestMode = false; - uint64_t m_globalCounter = 0; + bool m_isTestMode = false; + uint64_t m_globalCounter = 0; }; -- cgit v1.2.3