Skip to content

Commit 5733ae3

Browse files
committed
format
1 parent 94e8738 commit 5733ae3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,13 @@ std::optional<StaticSampler> RootSignatureParser::parseStaticSampler() {
385385
Sampler.MipLODBias = Params->MipLODBias.value();
386386

387387
if (Params->MaxAnisotropy.has_value())
388-
Sampler.MaxAnisotropy= Params->MaxAnisotropy.value();
388+
Sampler.MaxAnisotropy = Params->MaxAnisotropy.value();
389389

390390
if (Params->MinLOD.has_value())
391-
Sampler.MinLOD= Params->MinLOD.value();
391+
Sampler.MinLOD = Params->MinLOD.value();
392392

393393
if (Params->MaxLOD.has_value())
394-
Sampler.MaxLOD= Params->MaxLOD.value();
394+
Sampler.MaxLOD = Params->MaxLOD.value();
395395

396396
if (consumeExpectedToken(TokenKind::pu_r_paren,
397397
diag::err_hlsl_unexpected_end_of_params,
@@ -724,7 +724,7 @@ RootSignatureParser::parseStaticSamplerParams() {
724724
if (consumeExpectedToken(TokenKind::pu_equal))
725725
return std::nullopt;
726726

727-
auto MinLOD= parseFloatParam();
727+
auto MinLOD = parseFloatParam();
728728
if (!MinLOD.has_value())
729729
return std::nullopt;
730730
Params.MinLOD = MinLOD;
@@ -741,7 +741,7 @@ RootSignatureParser::parseStaticSamplerParams() {
741741
if (consumeExpectedToken(TokenKind::pu_equal))
742742
return std::nullopt;
743743

744-
auto MaxLOD= parseFloatParam();
744+
auto MaxLOD = parseFloatParam();
745745
if (!MaxLOD.has_value())
746746
return std::nullopt;
747747
Params.MaxLOD = MaxLOD;

clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseStaticSamplerTest) {
267267
ASSERT_EQ(std::get<StaticSampler>(Elem).MinLOD, 4.2f);
268268
ASSERT_EQ(std::get<StaticSampler>(Elem).MaxLOD, 9000.f);
269269

270-
271270
ASSERT_TRUE(Consumer->isSatisfied());
272271
}
273272

0 commit comments

Comments
 (0)