James Price | b926b1f | 2023-11-02 15:03:02 +0000 | [diff] [blame] | 1 | {{- /* |
| 2 | -------------------------------------------------------------------------------- |
| 3 | Template file for use with tools/src/cmd/gen to generate language_feature_test.cc |
| 4 | |
| 5 | See: |
| 6 | * tools/src/cmd/gen for structures used by this template |
| 7 | * https://golang.org/pkg/text/template/ for documentation on the template syntax |
| 8 | -------------------------------------------------------------------------------- |
| 9 | */ -}} |
| 10 | |
| 11 | {{- $I := LoadIntrinsics "src/tint/lang/wgsl/wgsl.def" -}} |
| 12 | {{- Import "src/tint/utils/templates/enums.tmpl.inc" -}} |
| 13 | {{- $enum := ($I.Sem.Enum "language_feature") -}} |
| 14 | |
Ben Clayton | 3c54ba5 | 2023-11-28 21:36:08 +0000 | [diff] [blame] | 15 | #include "src/tint/lang/wgsl/features/language_feature.h" |
James Price | b926b1f | 2023-11-02 15:03:02 +0000 | [diff] [blame] | 16 | |
| 17 | #include <gtest/gtest.h> |
| 18 | |
| 19 | #include <string> |
| 20 | |
| 21 | #include "src/tint/utils/text/string.h" |
| 22 | |
| 23 | namespace tint::wgsl { |
| 24 | namespace { |
| 25 | |
| 26 | {{ Eval "TestParsePrintEnum" $enum}} |
| 27 | |
| 28 | } // namespace |
| 29 | } // namespace tint::wgsl |