Skip to content

Commit 5298734

Browse files
committed
clang-format
1 parent f268687 commit 5298734

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
@@ -5235,7 +5235,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
52355235
ExprResult StringResult = ParseUnevaluatedStringLiteralExpression();
52365236
if (StringResult.isInvalid())
52375237
return std::nullopt;
5238-
5238+
52395239
if (auto Lit = dyn_cast<StringLiteral>(StringResult.get()))
52405240
return Lit;
52415241

@@ -5251,7 +5251,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
52515251
T.consumeClose();
52525252
return;
52535253
}
5254-
5254+
52555255
// Construct our identifier
52565256
StringRef Signature = StrLiteral.value()->getString();
52575257
auto Hash = llvm::hash_value(Signature);
@@ -5277,8 +5277,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
52775277
// Allocate the root elements onto ASTContext
52785278
unsigned N = Elements.size();
52795279
auto RootElements = MutableArrayRef<llvm::hlsl::rootsig::RootElement>(
5280-
::new (Actions.getASTContext()) llvm::hlsl::rootsig::RootElement[N],
5281-
N);
5280+
::new (Actions.getASTContext()) llvm::hlsl::rootsig::RootElement[N], N);
52825281
for (unsigned I = 0; I < N; ++I)
52835282
RootElements[I] = Elements[I];
52845283

@@ -5294,7 +5293,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
52945293
IdentifierLoc *ILoc = ::new (Actions.getASTContext())
52955294
IdentifierLoc(RootSignatureLoc, DeclIdent);
52965295

5297-
ArgsVector Args = { ILoc };
5296+
ArgsVector Args = {ILoc};
52985297

52995298
if (!T.consumeClose())
53005299
Attrs.addNew(RootSignatureIdent,

0 commit comments

Comments
 (0)