diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 13:59:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 13:59:28 +0800 |
| commit | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (patch) | |
| tree | 9580072eb0d796b51c04ad5be95230a747709150 /source/slang/slang-repro.cpp | |
| parent | a15d770242f88aa4b33cd7d3a97de9c8d86a2315 (diff) | |
preparation for clang format (#5422)
* Clang-format excludes
* Add .clang-format
* Don't clang-format in external
* Missing includes and forward declarations
* Replace wonky include-once macro name
* neaten include naming
* Add clang-format to formatting script
* Add xargs and diff to required binaries
* add clang-format to ci formatting check
* Add max version check to formatting script
* temporarily disable checking formatting for cpp files
Diffstat (limited to 'source/slang/slang-repro.cpp')
| -rw-r--r-- | source/slang/slang-repro.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-repro.cpp b/source/slang/slang-repro.cpp index 32f8d3289..4e5a03bc3 100644 --- a/source/slang/slang-repro.cpp +++ b/source/slang/slang-repro.cpp @@ -26,6 +26,7 @@ namespace Slang { // to set up the thing to hash. // // Note that bool is in the list because size of bool can change between compilers. +// clang-format off #define SLANG_STATE_TYPES(x) \ x(Util::FileState) \ x(Util::PathInfoState) \ @@ -52,7 +53,8 @@ namespace Slang { x(OptimizationLevel) \ x(ContainerFormat) \ x(PassThroughMode) \ - x(SlangMatrixLayoutMode) \ + x(SlangMatrixLayoutMode) +// clang-format on #define SLANG_STATE_TYPE_SIZE(x) uint32_t(sizeof(x)), |
