Skip to content

Commit 8155c60

Browse files
author
Finn Plummer
committed
clang-formatting
1 parent 490e6b9 commit 8155c60

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

clang/include/clang/Parse/ParseHLSLRootSignature.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ class RootSignatureParser {
9797
/// of &Clause.Space (uint32_t *) and update the parameter
9898
///
9999
/// and 'bReg' must be specified
100-
bool parseParams(
101-
llvm::SmallDenseMap<RootSignatureToken::Kind, llvm::hlsl::rootsig::ParamType> &Params,
102-
llvm::SmallDenseSet<RootSignatureToken::Kind> &Mandatory);
100+
bool parseParams(llvm::SmallDenseMap<RootSignatureToken::Kind,
101+
llvm::hlsl::rootsig::ParamType> &Params,
102+
llvm::SmallDenseSet<RootSignatureToken::Kind> &Mandatory);
103103

104104
/// Parameter parse methods corresponding to a ParamType
105105
bool parseUIntParam(uint32_t *X);

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ bool RootSignatureParser::parseDescriptorTableClause() {
128128
if (parseParams(Params, Mandatory))
129129
return true;
130130

131-
if (consumeExpectedToken(TokenKind::pu_r_paren, diag::err_hlsl_unexpected_end_of_params,
131+
if (consumeExpectedToken(TokenKind::pu_r_paren,
132+
diag::err_hlsl_unexpected_end_of_params,
132133
/*param of=*/ParamKind))
133134
return true;
134135

@@ -204,10 +205,11 @@ bool RootSignatureParser::parseUIntParam(uint32_t *X) {
204205
}
205206

206207
bool RootSignatureParser::parseRegister(Register *Register) {
207-
assert(
208-
(CurToken.TokKind == TokenKind::bReg || CurToken.TokKind == TokenKind::tReg ||
209-
CurToken.TokKind == TokenKind::uReg || CurToken.TokKind == TokenKind::sReg) &&
210-
"Expects to only be invoked starting at given keyword");
208+
assert((CurToken.TokKind == TokenKind::bReg ||
209+
CurToken.TokKind == TokenKind::tReg ||
210+
CurToken.TokKind == TokenKind::uReg ||
211+
CurToken.TokKind == TokenKind::sReg) &&
212+
"Expects to only be invoked starting at given keyword");
211213

212214
switch (CurToken.TokKind) {
213215
default:

0 commit comments

Comments
 (0)