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 14
14
#define LLVM_CLANG_PARSE_PARSEHLSLROOTSIGNATURE_H
15
15
16
16
#include " clang/Basic/DiagnosticParse.h"
17
- #include " clang/Lex/Preprocessor.h"
18
17
#include " clang/Lex/LexHLSLRootSignature.h"
18
+ #include " clang/Lex/Preprocessor.h"
19
19
20
20
#include " llvm/ADT/SmallVector.h"
21
21
#include " llvm/ADT/StringRef.h"
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ bool RootSignatureParser::Parse() {
49
49
llvm_unreachable (" Switch for consumed token was not provided" );
50
50
}
51
51
52
- if (Error) return true ;
52
+ if (Error)
53
+ return true ;
53
54
54
55
if (!TryConsumeExpectedToken (TokenKind::pu_comma))
55
56
break ;
@@ -92,12 +93,13 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
92
93
assert ((CurToken.Kind == TokenKind::kw_CBV ||
93
94
CurToken.Kind == TokenKind::kw_SRV ||
94
95
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" );
97
98
98
99
DescriptorTableClause Clause;
99
100
switch (CurToken.Kind ) {
100
- default : break ; // Unreachable given Try + assert pattern
101
+ default :
102
+ break ; // Unreachable given Try + assert pattern
101
103
case TokenKind::kw_CBV:
102
104
Clause.Type = ClauseType::CBuffer;
103
105
break ;
@@ -116,7 +118,6 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
116
118
CurToken.Kind ))
117
119
return true ;
118
120
119
-
120
121
if (ConsumeExpectedToken (TokenKind::pu_r_paren, diag::err_expected_after,
121
122
CurToken.Kind ))
122
123
return true ;
You can’t perform that action at this time.
0 commit comments