@@ -102,12 +102,12 @@ class RootSignatureParser {
102
102
const SmallVector<RootSignatureToken> &Tokens,
103
103
DiagnosticsEngine &Diags);
104
104
105
- // Iterates over the provided tokens and constructs the in-memory
106
- // representations of the RootElements.
107
- //
108
- // The return value denotes if there was a failure and the method will
109
- // return on the first encountered failure, or, return false if it
110
- // can sucessfully reach the end of the tokens.
105
+ /// Iterates over the provided tokens and constructs the in-memory
106
+ /// representations of the RootElements.
107
+ ///
108
+ /// The return value denotes if there was a failure and the method will
109
+ /// return on the first encountered failure, or, return false if it
110
+ /// can sucessfully reach the end of the tokens.
111
111
bool Parse();
112
112
113
113
private:
@@ -116,14 +116,14 @@ class RootSignatureParser {
116
116
bool ParseDescriptorTable();
117
117
bool ParseDescriptorTableClause();
118
118
119
- // Helper dispatch method
120
- //
121
- // These will switch on the Variant kind to dispatch to the respective Parse
122
- // method and store the parsed value back into Ref.
123
- //
124
- // It is helpful to have a generalized dispatch method so that when we need
125
- // to parse multiple optional parameters in any order, we can invoke this
126
- // method
119
+ /// Helper dispatch method
120
+ ///
121
+ /// These will switch on the Variant kind to dispatch to the respective Parse
122
+ /// method and store the parsed value back into Ref.
123
+ ///
124
+ /// It is helpful to have a generalized dispatch method so that when we need
125
+ /// to parse multiple optional parameters in any order, we can invoke this
126
+ /// method
127
127
bool ParseParam(llvm::hlsl::rootsig::ParamType Ref);
128
128
129
129
// Parse as many optional parameters as possible in any order
@@ -147,39 +147,39 @@ class RootSignatureParser {
147
147
ParseDescriptorRangeFlags(llvm::hlsl::rootsig::DescriptorRangeFlags *Enum);
148
148
bool ParseShaderVisibility(llvm::hlsl::rootsig::ShaderVisibility *Enum);
149
149
150
- // Increment the token iterator if we have not reached the end.
151
- // Return value denotes if we were already at the last token.
150
+ /// Increment the token iterator if we have not reached the end.
151
+ /// Return value denotes if we were already at the last token.
152
152
bool ConsumeNextToken();
153
153
154
- // Attempt to retrieve the next token, if TokenKind is invalid then there was
155
- // no next token.
154
+ /// Attempt to retrieve the next token, if TokenKind is invalid then there was
155
+ /// no next token.
156
156
RootSignatureToken PeekNextToken();
157
157
158
- // Is the current token one of the expected kinds
158
+ /// Is the current token one of the expected kinds
159
159
bool EnsureExpectedToken(TokenKind AnyExpected);
160
160
bool EnsureExpectedToken(ArrayRef<TokenKind> AnyExpected);
161
161
162
- // Peek if the next token is of the expected kind.
163
- //
164
- // Return value denotes if it failed to match the expected kind, either it is
165
- // the end of the stream or it didn't match any of the expected kinds.
162
+ /// Peek if the next token is of the expected kind.
163
+ ///
164
+ /// Return value denotes if it failed to match the expected kind, either it is
165
+ /// the end of the stream or it didn't match any of the expected kinds.
166
166
bool PeekExpectedToken(TokenKind Expected);
167
167
bool PeekExpectedToken(ArrayRef<TokenKind> AnyExpected);
168
168
169
- // Consume the next token and report an error if it is not of the expected
170
- // kind.
171
- //
172
- // Return value denotes if it failed to match the expected kind, either it is
173
- // the end of the stream or it didn't match any of the expected kinds.
169
+ /// Consume the next token and report an error if it is not of the expected
170
+ /// kind.
171
+ ///
172
+ /// Return value denotes if it failed to match the expected kind, either it is
173
+ /// the end of the stream or it didn't match any of the expected kinds.
174
174
bool ConsumeExpectedToken(TokenKind Expected);
175
175
bool ConsumeExpectedToken(ArrayRef<TokenKind> AnyExpected);
176
176
177
- // Peek if the next token is of the expected kind and if it is then consume
178
- // it.
179
- //
180
- // Return value denotes if it failed to match the expected kind, either it is
181
- // the end of the stream or it didn't match any of the expected kinds. It will
182
- // not report an error if there isn't a match.
177
+ /// Peek if the next token is of the expected kind and if it is then consume
178
+ /// it.
179
+ ///
180
+ /// Return value denotes if it failed to match the expected kind, either it is
181
+ /// the end of the stream or it didn't match any of the expected kinds. It
182
+ /// will not report an error if there isn't a match.
183
183
bool TryConsumeExpectedToken(TokenKind Expected);
184
184
bool TryConsumeExpectedToken(ArrayRef<TokenKind> Expected);
185
185
0 commit comments