blob: 2907287eee1ee23abbcf4b4c605291cd0377ebcd [file] [log] [blame]
dan sinclair077d97a2023-02-23 19:08:57 +00001{{- /*
2--------------------------------------------------------------------------------
3Template file for use with tools/src/cmd/gen to generate attribute.h
4
5To update the generated file, run:
6 ./tools/run gen
7
8See:
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 Clayton2dffb3c2023-08-07 12:35:33 +000014{{- $I := LoadIntrinsics "src/tint/lang/core/core.def" -}}
dan sinclair22b4dd22023-07-21 00:40:07 +000015{{- Import "src/tint/utils/templates/enums.tmpl.inc" -}}
Ben Clayton2dffb3c2023-08-07 12:35:33 +000016{{- $enum := ($I.Sem.Enum "attribute") -}}
dan sinclair077d97a2023-02-23 19:08:57 +000017
Ben Claytoncd52f382023-08-07 13:11:08 +000018#ifndef SRC_TINT_LANG_CORE_ATTRIBUTE_H_
19#define SRC_TINT_LANG_CORE_ATTRIBUTE_H_
dan sinclair077d97a2023-02-23 19:08:57 +000020
Stephan Hartmann9141e912023-08-14 15:56:22 +000021#include <cstdint>
22
Ben Clayton68919602023-07-28 22:51:18 +000023#include "src/tint/utils/traits/traits.h"
dan sinclair077d97a2023-02-23 19:08:57 +000024
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 Claytoncd52f382023-08-07 13:11:08 +000028namespace tint::core {
dan sinclair077d97a2023-02-23 19:08:57 +000029
30/// Address space of a given pointer.
31{{ Eval "DeclareEnum" $enum}}
32
Ben Claytoncd52f382023-08-07 13:11:08 +000033} // namespace tint::core
dan sinclair077d97a2023-02-23 19:08:57 +000034/// \endcond
35
Ben Claytoncd52f382023-08-07 13:11:08 +000036#endif // SRC_TINT_LANG_CORE_ATTRIBUTE_H_