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 --- source/slang/slang-ast-support-types.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source/slang/slang-ast-support-types.cpp') diff --git a/source/slang/slang-ast-support-types.cpp b/source/slang/slang-ast-support-types.cpp index 6a957e427..a06fa2b88 100644 --- a/source/slang/slang-ast-support-types.cpp +++ b/source/slang/slang-ast-support-types.cpp @@ -1,14 +1,14 @@ #include "slang-ast-support-types.h" + #include "slang-ast-base.h" -#include "slang-ast-type.h" #include "slang-ast-expr.h" +#include "slang-ast-type.h" #include "slang-check-impl.h" namespace Slang { QualType::QualType(Type* type) - : type(type) - , isLeftValue(false) + : type(type), isLeftValue(false) { if (as(type)) { @@ -45,7 +45,8 @@ Expr* getInnerMostExprFromHigherOrderExpr(Expr* expr, FunctionDifferentiableLeve { if (as(expr)) outLevel = FunctionDifferentiableLevel::Backward; - else if (as(expr) && outLevel == FunctionDifferentiableLevel::None) + else if ( + as(expr) && outLevel == FunctionDifferentiableLevel::None) outLevel = FunctionDifferentiableLevel::Forward; if (workListSet.add(higherOrder)) { @@ -69,4 +70,4 @@ UnownedStringSlice getHigherOrderOperatorName(HigherOrderInvokeExpr* expr) return UnownedStringSlice(); } -} +} // namespace Slang -- cgit v1.2.3