llvm-project/clang/test/TableGen/HLSLAttribute-errors.td
Nathan Gauër 78554d9e84
Reapply "[HLSL] Rework semantic handling as attributes" (#167862)
Last PR had asan failures due to bad use of a Twine instead of an
std::string.
2025-11-13 14:09:15 +01:00

12 lines
386 B
TableGen

// RUN: not clang-tblgen -gen-clang-attr-parsed-attr-kinds -I%p/../../include %s -o - 2>&1 | FileCheck %s
include "clang/Basic/Attr.td"
// CHECK: error: HLSLAnnotation Attribute must be lower case.
def HLSLSV_FAKE: HLSLAnnotationAttr {
let Spellings = [HLSLAnnotation<"SV_Fake">];
let Subjects = SubjectList<[ParmVar, Field]>;
let LangOpts = [HLSL];
let Documentation = [];
}