@@ -651,28 +651,30 @@ void SemaHLSL::emitLogicalOperatorFixIt(Expr *LHS, Expr *RHS,
651651void SemaHLSL::handleRootSignatureAttr (Decl *D, const ParsedAttr &AL) {
652652 using namespace llvm ::hlsl::root_signature;
653653
654- if (AL.getNumArgs () != 1 ) return ;
654+ if (AL.getNumArgs () != 1 )
655+ return ;
655656
656657 StringRef Signature;
657658 if (!SemaRef.checkStringLiteralArgumentAttr (AL, 0 , Signature))
658- return ;
659+ return ;
659660
660661 SourceLocation Loc = AL.getArgAsExpr (0 )->getExprLoc ();
661662 // FIXME: pass down below to lexer when fp is supported
662663 // llvm::RoundingMode RM = SemaRef.CurFPFeatures.getRoundingMode();
663664 SmallVector<RootSignatureToken> Tokens;
664665 RootSignatureLexer Lexer (Signature, Loc, SemaRef.getPreprocessor ());
665- if (Lexer.Lex (Tokens)) return ;
666+ if (Lexer.Lex (Tokens))
667+ return ;
666668
667669 SmallVector<RootElement> Elements;
668670 RootSignatureParser Parser (Elements, Tokens);
669- if (Parser.Parse ()) return ;
671+ if (Parser.Parse ())
672+ return ;
670673
671- auto *RootElements =
672- ::new (getASTContext ()) ArrayRef<RootElement>(Elements);
674+ auto *RootElements = ::new (getASTContext ()) ArrayRef<RootElement>(Elements);
673675
674- auto *Result =
675- :: new ( getASTContext ()) HLSLRootSignatureAttr (getASTContext (), AL, Signature);
676+ auto *Result = :: new ( getASTContext ())
677+ HLSLRootSignatureAttr (getASTContext (), AL, Signature);
676678 Result->setElements (*RootElements);
677679 D->addAttr (Result);
678680}
0 commit comments