dan sinclair | 077d97a | 2023-02-23 19:08:57 +0000 | [diff] [blame] | 1 | {{- /* |
| 2 | -------------------------------------------------------------------------------- |
| 3 | Template file for use with tools/src/cmd/gen to generate attribute.h |
| 4 | |
| 5 | To update the generated file, run: |
| 6 | ./tools/run gen |
| 7 | |
| 8 | See: |
| 9 | * tools/src/cmd/gen for structures used by this template |
| 10 | * https://golang.org/pkg/text/template/ for documentation on the template syntax |
| 11 | -------------------------------------------------------------------------------- |
| 12 | */ -}} |
| 13 | |
Ben Clayton | 2dffb3c | 2023-08-07 12:35:33 +0000 | [diff] [blame] | 14 | {{- $I := LoadIntrinsics "src/tint/lang/core/core.def" -}} |
dan sinclair | 22b4dd2 | 2023-07-21 00:40:07 +0000 | [diff] [blame] | 15 | {{- Import "src/tint/utils/templates/enums.tmpl.inc" -}} |
Ben Clayton | 2dffb3c | 2023-08-07 12:35:33 +0000 | [diff] [blame] | 16 | {{- $enum := ($I.Sem.Enum "attribute") -}} |
dan sinclair | 077d97a | 2023-02-23 19:08:57 +0000 | [diff] [blame] | 17 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 18 | #ifndef SRC_TINT_LANG_CORE_ATTRIBUTE_H_ |
| 19 | #define SRC_TINT_LANG_CORE_ATTRIBUTE_H_ |
dan sinclair | 077d97a | 2023-02-23 19:08:57 +0000 | [diff] [blame] | 20 | |
Stephan Hartmann | 9141e91 | 2023-08-14 15:56:22 +0000 | [diff] [blame] | 21 | #include <cstdint> |
| 22 | |
Ben Clayton | 6891960 | 2023-07-28 22:51:18 +0000 | [diff] [blame] | 23 | #include "src/tint/utils/traits/traits.h" |
dan sinclair | 077d97a | 2023-02-23 19:08:57 +0000 | [diff] [blame] | 24 | |
| 25 | /// \cond DO_NOT_DOCUMENT |
| 26 | /// There is a bug in doxygen where this enum conflicts with the ast::Attribute |
| 27 | /// and generates invalid documentation errors. |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 28 | namespace tint::core { |
dan sinclair | 077d97a | 2023-02-23 19:08:57 +0000 | [diff] [blame] | 29 | |
| 30 | /// Address space of a given pointer. |
| 31 | {{ Eval "DeclareEnum" $enum}} |
| 32 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 33 | } // namespace tint::core |
dan sinclair | 077d97a | 2023-02-23 19:08:57 +0000 | [diff] [blame] | 34 | /// \endcond |
| 35 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 36 | #endif // SRC_TINT_LANG_CORE_ATTRIBUTE_H_ |