Skip to content

Commit 141c732

Browse files
committed
clang-format
1 parent 5b05ef6 commit 141c732

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clang/lib/Parse/ParseDeclCXX.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5337,7 +5337,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
53375337
ExprResult StringResult = ParseUnevaluatedStringLiteralExpression();
53385338
if (StringResult.isInvalid())
53395339
return std::nullopt;
5340-
5340+
53415341
if (auto Lit = dyn_cast<StringLiteral>(StringResult.get()))
53425342
return Lit;
53435343

@@ -5353,7 +5353,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
53535353
T.consumeClose();
53545354
return;
53555355
}
5356-
5356+
53575357
// Construct our identifier
53585358
StringRef Signature = StrLiteral.value()->getString();
53595359
auto Hash = llvm::hash_value(Signature);
@@ -5379,8 +5379,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
53795379
// Allocate the root elements onto ASTContext
53805380
unsigned N = Elements.size();
53815381
auto RootElements = MutableArrayRef<llvm::hlsl::rootsig::RootElement>(
5382-
::new (Actions.getASTContext()) llvm::hlsl::rootsig::RootElement[N],
5383-
N);
5382+
::new (Actions.getASTContext()) llvm::hlsl::rootsig::RootElement[N], N);
53845383
for (unsigned I = 0; I < N; ++I)
53855384
RootElements[I] = Elements[I];
53865385

@@ -5396,7 +5395,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
53965395
IdentifierLoc *ILoc = ::new (Actions.getASTContext())
53975396
IdentifierLoc(RootSignatureLoc, DeclIdent);
53985397

5399-
ArgsVector Args = { ILoc };
5398+
ArgsVector Args = {ILoc};
54005399

54015400
if (!T.consumeClose())
54025401
Attrs.addNew(RootSignatureIdent,

0 commit comments

Comments
 (0)