File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1414#define LLVM_CLANG_PARSE_PARSEHLSLROOTSIGNATURE_H
1515
1616#include " clang/Basic/DiagnosticParse.h"
17- #include " clang/Lex/Preprocessor.h"
1817#include " clang/Lex/LexHLSLRootSignature.h"
18+ #include " clang/Lex/Preprocessor.h"
1919
2020#include " llvm/ADT/SmallVector.h"
2121#include " llvm/ADT/StringRef.h"
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ bool RootSignatureParser::Parse() {
4949 llvm_unreachable (" Switch for consumed token was not provided" );
5050 }
5151
52- if (Error) return true ;
52+ if (Error)
53+ return true ;
5354
5455 if (!TryConsumeExpectedToken (TokenKind::pu_comma))
5556 break ;
@@ -92,12 +93,13 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
9293 assert ((CurToken.Kind == TokenKind::kw_CBV ||
9394 CurToken.Kind == TokenKind::kw_SRV ||
9495 CurToken.Kind == TokenKind::kw_UAV ||
95- CurToken.Kind == TokenKind::kw_Sampler)
96- && " Expects to only be invoked starting at given keyword" );
96+ CurToken.Kind == TokenKind::kw_Sampler) &&
97+ " Expects to only be invoked starting at given keyword" );
9798
9899 DescriptorTableClause Clause;
99100 switch (CurToken.Kind ) {
100- default : break ; // Unreachable given Try + assert pattern
101+ default :
102+ break ; // Unreachable given Try + assert pattern
101103 case TokenKind::kw_CBV:
102104 Clause.Type = ClauseType::CBuffer;
103105 break ;
@@ -116,7 +118,6 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
116118 CurToken.Kind ))
117119 return true ;
118120
119-
120121 if (ConsumeExpectedToken (TokenKind::pu_r_paren, diag::err_expected_after,
121122 CurToken.Kind ))
122123 return true ;
You can’t perform that action at this time.
0 commit comments