We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ff0c8 commit a561510Copy full SHA for a561510
clang/include/clang/Parse/ParseHLSLRootSignature.h
@@ -197,11 +197,8 @@ class RootSignatureParser {
197
/// StringLiterals
198
SourceLocation getTokenLocation(RootSignatureToken Tok);
199
200
- DiagnosticBuilder
201
- reportDiag(unsigned DiagID,
202
- std::optional<RootSignatureToken> Context = std::nullopt) {
203
- RootSignatureToken Tok = Context.has_value() ? *Context : CurToken;
204
- return getDiags().Report(getTokenLocation(Tok), DiagID);
+ DiagnosticBuilder reportDiag(unsigned DiagID) {
+ return getDiags().Report(getTokenLocation(CurToken), DiagID);
205
}
206
207
private:
0 commit comments