@@ -89,12 +89,12 @@ class RootSignatureParser {
89
89
const SmallVector<RootSignatureToken> &Tokens,
90
90
DiagnosticsEngine &Diags);
91
91
92
- // Iterates over the provided tokens and constructs the in-memory
93
- // representations of the RootElements.
94
- //
95
- // The return value denotes if there was a failure and the method will
96
- // return on the first encountered failure, or, return false if it
97
- // can sucessfully reach the end of the tokens.
92
+ // / Iterates over the provided tokens and constructs the in-memory
93
+ // / representations of the RootElements.
94
+ // /
95
+ // / The return value denotes if there was a failure and the method will
96
+ // / return on the first encountered failure, or, return false if it
97
+ // / can sucessfully reach the end of the tokens.
98
98
bool Parse ();
99
99
100
100
private:
@@ -103,14 +103,14 @@ class RootSignatureParser {
103
103
bool ParseDescriptorTable ();
104
104
bool ParseDescriptorTableClause ();
105
105
106
- // Helper dispatch method
107
- //
108
- // These will switch on the Variant kind to dispatch to the respective Parse
109
- // method and store the parsed value back into Ref.
110
- //
111
- // It is helpful to have a generalized dispatch method so that when we need
112
- // to parse multiple optional parameters in any order, we can invoke this
113
- // method
106
+ // / Helper dispatch method
107
+ // /
108
+ // / These will switch on the Variant kind to dispatch to the respective Parse
109
+ // / method and store the parsed value back into Ref.
110
+ // /
111
+ // / It is helpful to have a generalized dispatch method so that when we need
112
+ // / to parse multiple optional parameters in any order, we can invoke this
113
+ // / method
114
114
bool ParseParam (llvm::hlsl::rootsig::ParamType Ref);
115
115
116
116
// Parse as many optional parameters as possible in any order
@@ -134,39 +134,39 @@ class RootSignatureParser {
134
134
ParseDescriptorRangeFlags (llvm::hlsl::rootsig::DescriptorRangeFlags *Enum);
135
135
bool ParseShaderVisibility (llvm::hlsl::rootsig::ShaderVisibility *Enum);
136
136
137
- // Increment the token iterator if we have not reached the end.
138
- // Return value denotes if we were already at the last token.
137
+ // / Increment the token iterator if we have not reached the end.
138
+ // / Return value denotes if we were already at the last token.
139
139
bool ConsumeNextToken ();
140
140
141
- // Attempt to retrieve the next token, if TokenKind is invalid then there was
142
- // no next token.
141
+ // / Attempt to retrieve the next token, if TokenKind is invalid then there was
142
+ // / no next token.
143
143
RootSignatureToken PeekNextToken ();
144
144
145
- // Is the current token one of the expected kinds
145
+ // / Is the current token one of the expected kinds
146
146
bool EnsureExpectedToken (TokenKind AnyExpected);
147
147
bool EnsureExpectedToken (ArrayRef<TokenKind> AnyExpected);
148
148
149
- // Peek if the next token is of the expected kind.
150
- //
151
- // Return value denotes if it failed to match the expected kind, either it is
152
- // the end of the stream or it didn't match any of the expected kinds.
149
+ // / Peek if the next token is of the expected kind.
150
+ // /
151
+ // / Return value denotes if it failed to match the expected kind, either it is
152
+ // / the end of the stream or it didn't match any of the expected kinds.
153
153
bool PeekExpectedToken (TokenKind Expected);
154
154
bool PeekExpectedToken (ArrayRef<TokenKind> AnyExpected);
155
155
156
- // Consume the next token and report an error if it is not of the expected
157
- // kind.
158
- //
159
- // Return value denotes if it failed to match the expected kind, either it is
160
- // the end of the stream or it didn't match any of the expected kinds.
156
+ // / Consume the next token and report an error if it is not of the expected
157
+ // / kind.
158
+ // /
159
+ // / Return value denotes if it failed to match the expected kind, either it is
160
+ // / the end of the stream or it didn't match any of the expected kinds.
161
161
bool ConsumeExpectedToken (TokenKind Expected);
162
162
bool ConsumeExpectedToken (ArrayRef<TokenKind> AnyExpected);
163
163
164
- // Peek if the next token is of the expected kind and if it is then consume
165
- // it.
166
- //
167
- // Return value denotes if it failed to match the expected kind, either it is
168
- // the end of the stream or it didn't match any of the expected kinds. It will
169
- // not report an error if there isn't a match.
164
+ // / Peek if the next token is of the expected kind and if it is then consume
165
+ // / it.
166
+ // /
167
+ // / Return value denotes if it failed to match the expected kind, either it is
168
+ // / the end of the stream or it didn't match any of the expected kinds. It
169
+ // / will not report an error if there isn't a match.
170
170
bool TryConsumeExpectedToken (TokenKind Expected);
171
171
bool TryConsumeExpectedToken (ArrayRef<TokenKind> Expected);
172
172
0 commit comments