22 Context, LexicalParent, CBuffer, KwLoc, Ident, IdentLoc, LBrace);
31 auto *BufDecl = cast<HLSLBufferDecl>(Dcl);
32 BufDecl->setRBraceLoc(RBrace);
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
Decl - This represents one declaration (or definition), e.g.
HLSLBufferDecl - Represent a cbuffer or tbuffer declaration.
static HLSLBufferDecl * Create(ASTContext &C, DeclContext *LexicalParent, bool CBuffer, SourceLocation KwLoc, IdentifierInfo *ID, SourceLocation IDLoc, SourceLocation LBrace)
One of these records is kept for each identifier that is lexed.
Scope - A scope is a transient data structure that is used while parsing the program.
void PushOnScopeChains(NamedDecl *D, Scope *S, bool AddToContext=true)
Add this decl to the scope shadowed decl chains.
Decl * ActOnStartHLSLBuffer(Scope *BufferScope, bool CBuffer, SourceLocation KwLoc, IdentifierInfo *Ident, SourceLocation IdentLoc, SourceLocation LBrace)
DeclContext * getCurLexicalContext() const
void ActOnFinishHLSLBuffer(Decl *Dcl, SourceLocation RBrace)
void PushDeclContext(Scope *S, DeclContext *DC)
Set the current declaration context until it gets popped.
Encodes a location in the source.
@ Result
The result type of a method or function.