Skip to content

Commit d17b207

Browse files
committed
clang-format
1 parent 5054e7a commit d17b207

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,18 @@ std::optional<RootFlags> RootSignatureParser::parseRootFlags() {
8282
} else {
8383
// Otherwise, parse as many flags as possible
8484
TokenKind Expected[] = {
85-
#define ROOT_FLAG_ENUM(NAME, LIT) TokenKind::en_##NAME,
86-
#include "clang/Lex/HLSLRootSignatureTokenKinds.def"
85+
#define ROOT_FLAG_ENUM(NAME, LIT) TokenKind::en_##NAME,
86+
#include "clang/Lex/HLSLRootSignatureTokenKinds.def"
8787
};
8888

8989
do {
9090
if (tryConsumeExpectedToken(Expected)) {
9191
switch (CurToken.TokKind) {
92-
#define ROOT_FLAG_ENUM(NAME, LIT) \
93-
case TokenKind::en_##NAME: \
94-
Flags = \
95-
maybeOrFlag<RootFlags>(Flags, RootFlags::NAME); \
96-
break;
97-
#include "clang/Lex/HLSLRootSignatureTokenKinds.def"
92+
#define ROOT_FLAG_ENUM(NAME, LIT) \
93+
case TokenKind::en_##NAME: \
94+
Flags = maybeOrFlag<RootFlags>(Flags, RootFlags::NAME); \
95+
break;
96+
#include "clang/Lex/HLSLRootSignatureTokenKinds.def"
9897
default:
9998
llvm_unreachable("Switch for consumed enum token was not provided");
10099
}

llvm/include/llvm/Frontend/HLSL/HLSLRootSignature.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ struct DescriptorTableClause {
114114
};
115115

116116
// Models RootElement : RootConstants | DescriptorTable | DescriptorTableClause
117-
using RootElement =
118-
std::variant<RootFlags, RootConstants, DescriptorTable, DescriptorTableClause>;
117+
using RootElement = std::variant<RootFlags, RootConstants, DescriptorTable,
118+
DescriptorTableClause>;
119119

120120
} // namespace rootsig
121121
} // namespace hlsl

0 commit comments

Comments
 (0)