@@ -89,12 +89,12 @@ class RootSignatureParser {
8989 const SmallVector<RootSignatureToken> &Tokens,
9090 DiagnosticsEngine &Diags);
9191
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.
9898 bool Parse ();
9999
100100private:
@@ -103,14 +103,14 @@ class RootSignatureParser {
103103 bool ParseDescriptorTable ();
104104 bool ParseDescriptorTableClause ();
105105
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
114114 bool ParseParam (llvm::hlsl::rootsig::ParamType Ref);
115115
116116 // Parse as many optional parameters as possible in any order
@@ -134,39 +134,39 @@ class RootSignatureParser {
134134 ParseDescriptorRangeFlags (llvm::hlsl::rootsig::DescriptorRangeFlags *Enum);
135135 bool ParseShaderVisibility (llvm::hlsl::rootsig::ShaderVisibility *Enum);
136136
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.
139139 bool ConsumeNextToken ();
140140
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.
143143 RootSignatureToken PeekNextToken ();
144144
145- // Is the current token one of the expected kinds
145+ // / Is the current token one of the expected kinds
146146 bool EnsureExpectedToken (TokenKind AnyExpected);
147147 bool EnsureExpectedToken (ArrayRef<TokenKind> AnyExpected);
148148
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.
153153 bool PeekExpectedToken (TokenKind Expected);
154154 bool PeekExpectedToken (ArrayRef<TokenKind> AnyExpected);
155155
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.
161161 bool ConsumeExpectedToken (TokenKind Expected);
162162 bool ConsumeExpectedToken (ArrayRef<TokenKind> AnyExpected);
163163
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.
170170 bool TryConsumeExpectedToken (TokenKind Expected);
171171 bool TryConsumeExpectedToken (ArrayRef<TokenKind> Expected);
172172
0 commit comments