clang 22.0.0git
clang::hlsl::RootSignatureParser Class Reference

#include "clang/Parse/ParseHLSLRootSignature.h"

Public Member Functions

 RootSignatureParser (llvm::dxbc::RootSignatureVersion Version, StringLiteral *Signature, Preprocessor &PP)
bool parse ()
 Consumes tokens from the Lexer and constructs the in-memory representations of the RootElements.
ArrayRef< RootSignatureElementgetElements ()
 Return all elements that have been parsed.

Detailed Description

Definition at line 30 of file ParseHLSLRootSignature.h.

Constructor & Destructor Documentation

◆ RootSignatureParser()

clang::hlsl::RootSignatureParser::RootSignatureParser ( llvm::dxbc::RootSignatureVersion Version,
StringLiteral * Signature,
Preprocessor & PP )

Definition at line 31 of file ParseHLSLRootSignature.cpp.

Member Function Documentation

◆ getElements()

ArrayRef< RootSignatureElement > clang::hlsl::RootSignatureParser::getElements ( )
inline

Return all elements that have been parsed.

Definition at line 43 of file ParseHLSLRootSignature.h.

◆ parse()

bool clang::hlsl::RootSignatureParser::parse ( )

Consumes tokens from the Lexer and constructs the in-memory representations of the RootElements.

Tokens are consumed until an error is encountered or the end of the buffer.

Returns true if a parsing error is encountered.

Definition at line 37 of file ParseHLSLRootSignature.cpp.

References clang::hlsl::RootElementKeywords.


The documentation for this class was generated from the following files: