diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /source/slang/slang-ast-support-types.cpp | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'source/slang/slang-ast-support-types.cpp')
| -rw-r--r-- | source/slang/slang-ast-support-types.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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<RefType>(type)) { @@ -45,7 +45,8 @@ Expr* getInnerMostExprFromHigherOrderExpr(Expr* expr, FunctionDifferentiableLeve { if (as<BackwardDifferentiateExpr>(expr)) outLevel = FunctionDifferentiableLevel::Backward; - else if (as<ForwardDifferentiateExpr>(expr) && outLevel == FunctionDifferentiableLevel::None) + else if ( + as<ForwardDifferentiateExpr>(expr) && outLevel == FunctionDifferentiableLevel::None) outLevel = FunctionDifferentiableLevel::Forward; if (workListSet.add(higherOrder)) { @@ -69,4 +70,4 @@ UnownedStringSlice getHigherOrderOperatorName(HigherOrderInvokeExpr* expr) return UnownedStringSlice(); } -} +} // namespace Slang |
