Skip to content

Commit 5b18f99

Browse files
committed
Address clang-format complaints.
1 parent 07c9c1c commit 5b18f99

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

clang/include/clang/AST/StmtSYCL.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ class UnresolvedSYCLKernelCallStmt : public Stmt {
125125
void setKernelLaunchIdExpr(Expr *IdExpr) { KernelLaunchIdExpr = IdExpr; }
126126

127127
public:
128-
static UnresolvedSYCLKernelCallStmt *
129-
Create(const ASTContext &C, CompoundStmt *CS, Expr *IdExpr) {
128+
static UnresolvedSYCLKernelCallStmt *Create(const ASTContext &C,
129+
CompoundStmt *CS, Expr *IdExpr) {
130130
return new (C) UnresolvedSYCLKernelCallStmt(CS, IdExpr);
131131
}
132132

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16226,8 +16226,8 @@ Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D,
1622616226

1622716227
maybeAddDeclWithEffects(FD);
1622816228

16229-
if (FD && !FD->isInvalidDecl() &&
16230-
FD->hasAttr<SYCLKernelEntryPointAttr>() && FnBodyScope) {
16229+
if (FD && !FD->isInvalidDecl() && FD->hasAttr<SYCLKernelEntryPointAttr>() &&
16230+
FnBodyScope) {
1623116231
// An implicit call expression is synthesized for functions declared with
1623216232
// the sycl_kernel_entry_point attribute. The call may resolve to a
1623316233
// function template, a member function template, or a call operator

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,8 @@ ExprResult SemaSYCL::BuildSYCLKernelLaunchIdExpr(FunctionDecl *FD,
436436
/*IsAddressOfOperand*/ false))
437437
// The lookup result allows for a possible implicit member access that
438438
// would require an implicit or explicit 'this' argument.
439-
IdExpr = SemaRef.BuildPossibleImplicitMemberExpr(EmptySS, SourceLocation(),
440-
Result, &TALI,
441-
SemaRef.getCurScope());
439+
IdExpr = SemaRef.BuildPossibleImplicitMemberExpr(
440+
EmptySS, SourceLocation(), Result, &TALI, SemaRef.getCurScope());
442441
else
443442
IdExpr = SemaRef.BuildTemplateIdExpr(EmptySS, SourceLocation(), Result,
444443
/*RequiresADL*/ true, &TALI);

clang/lib/Sema/TreeTransform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12976,11 +12976,11 @@ StmtResult TreeTransform<Derived>::TransformUnresolvedSYCLKernelCallStmt(
1297612976

1297712977
ExprResult IdExpr = getDerived().TransformExpr(S->getKernelLaunchIdExpr());
1297812978
if (IdExpr.isInvalid())
12979-
return StmtError();
12979+
return StmtError();
1298012980

1298112981
StmtResult Body = getDerived().TransformStmt(S->getOriginalStmt());
1298212982
if (Body.isInvalid())
12983-
return StmtError();
12983+
return StmtError();
1298412984

1298512985
StmtResult SR = SemaRef.SYCL().BuildSYCLKernelCallStmt(
1298612986
cast<FunctionDecl>(SemaRef.CurContext), cast<CompoundStmt>(Body.get()),

0 commit comments

Comments
 (0)