Skip to content

Commit 3a598fd

Browse files
author
Finn Plummer
committed
self-review: clang-format fix up
1 parent 8155c60 commit 3a598fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,15 @@ bool RootSignatureParser::parseDescriptorTableClause() {
138138
}
139139

140140
// Helper struct defined to use the overloaded notation of std::visit.
141-
template <class... Ts> struct ParseMethods : Ts... { using Ts::operator()...; };
142-
template <class... Ts> ParseMethods(Ts...) -> ParseMethods<Ts...>;
141+
template <class... Ts> struct ParseParamTypeMethods : Ts... {
142+
using Ts::operator()...;
143+
};
144+
template <class... Ts>
145+
ParseParamTypeMethods(Ts...) -> ParseParamTypeMethods<Ts...>;
143146

144147
bool RootSignatureParser::parseParam(ParamType Ref) {
145148
return std::visit(
146-
ParseMethods{
149+
ParseParamTypeMethods{
147150
[this](Register *X) -> bool { return parseRegister(X); },
148151
[this](uint32_t *X) -> bool {
149152
return consumeExpectedToken(TokenKind::pu_equal,

0 commit comments

Comments
 (0)