[clang] [HLSL] Add `[[hlsl::contained_type()]]` attribute (PR #108456)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 14:50:55 PDT 2024
================
@@ -563,18 +566,23 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) {
D->addAttr(NewAttr);
}
-bool clang::CreateHLSLAttributedResourceType(Sema &S, QualType Wrapped,
- ArrayRef<const Attr *> AttrList,
- QualType &ResType) {
+bool clang::CreateHLSLAttributedResourceType(
+ Sema &S, QualType Wrapped, ArrayRef<const Attr *> AttrList,
+ QualType &ResType, HLSLAttributedResourceLocInfo *LocInfo /*= nullptr*/) {
assert(AttrList.size() && "expected list of resource attributes");
- QualType Contained = QualType();
+ QualType ContainedTy = QualType();
+ TypeSourceInfo *ContainedTyTSI;
+ SourceLocation LocBegin = AttrList[0]->getRange().getBegin();
+ SourceLocation LocEnd = SourceLocation();
----------------
bogner wrote:
Should we initialize this to `AttrList[0]->getRange().getEnd()`?
https://github.com/llvm/llvm-project/pull/108456
More information about the cfe-commits
mailing list