@@ -102,12 +102,12 @@ class RootSignatureParser {
102102 const SmallVector<RootSignatureToken> &Tokens,
103103 DiagnosticsEngine &Diags);
104104
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.
111111 bool Parse ();
112112
113113private:
@@ -116,14 +116,14 @@ class RootSignatureParser {
116116 bool ParseDescriptorTable ();
117117 bool ParseDescriptorTableClause ();
118118
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
127127 bool ParseParam (llvm::hlsl::rootsig::ParamType Ref);
128128
129129 // Parse as many optional parameters as possible in any order
@@ -147,39 +147,39 @@ class RootSignatureParser {
147147 ParseDescriptorRangeFlags (llvm::hlsl::rootsig::DescriptorRangeFlags *Enum);
148148 bool ParseShaderVisibility (llvm::hlsl::rootsig::ShaderVisibility *Enum);
149149
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.
152152 bool ConsumeNextToken ();
153153
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.
156156 RootSignatureToken PeekNextToken ();
157157
158- // Is the current token one of the expected kinds
158+ // / Is the current token one of the expected kinds
159159 bool EnsureExpectedToken (TokenKind AnyExpected);
160160 bool EnsureExpectedToken (ArrayRef<TokenKind> AnyExpected);
161161
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.
166166 bool PeekExpectedToken (TokenKind Expected);
167167 bool PeekExpectedToken (ArrayRef<TokenKind> AnyExpected);
168168
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.
174174 bool ConsumeExpectedToken (TokenKind Expected);
175175 bool ConsumeExpectedToken (ArrayRef<TokenKind> AnyExpected);
176176
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.
183183 bool TryConsumeExpectedToken (TokenKind Expected);
184184 bool TryConsumeExpectedToken (ArrayRef<TokenKind> Expected);
185185
0 commit comments