blob: 2907287eee1ee23abbcf4b4c605291cd0377ebcd [file] [log] [blame]
{{- /*
--------------------------------------------------------------------------------
Template file for use with tools/src/cmd/gen to generate attribute.h
To update the generated file, run:
./tools/run gen
See:
* tools/src/cmd/gen for structures used by this template
* https://golang.org/pkg/text/template/ for documentation on the template syntax
--------------------------------------------------------------------------------
*/ -}}
{{- $I := LoadIntrinsics "src/tint/lang/core/core.def" -}}
{{- Import "src/tint/utils/templates/enums.tmpl.inc" -}}
{{- $enum := ($I.Sem.Enum "attribute") -}}
#ifndef SRC_TINT_LANG_CORE_ATTRIBUTE_H_
#define SRC_TINT_LANG_CORE_ATTRIBUTE_H_
#include <cstdint>
#include "src/tint/utils/traits/traits.h"
/// \cond DO_NOT_DOCUMENT
/// There is a bug in doxygen where this enum conflicts with the ast::Attribute
/// and generates invalid documentation errors.
namespace tint::core {
/// Address space of a given pointer.
{{ Eval "DeclareEnum" $enum}}
} // namespace tint::core
/// \endcond
#endif // SRC_TINT_LANG_CORE_ATTRIBUTE_H_