Skip to content

Commit 73e1d02

Browse files
committed
[SYCL][NFC] Fix clang format in SYCL.h
Signed-off-by: jinge90 <[email protected]>
1 parent 8a5d80f commit 73e1d02

File tree

1 file changed

+18
-14
lines changed
  • clang/lib/Driver/ToolChains

1 file changed

+18
-14
lines changed

clang/lib/Driver/ToolChains/SYCL.h

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//===--- SYCL.h - SYCL ToolChain Implementations -----------------*- C++ -*-===//
1+
//===--- SYCL.h - SYCL ToolChain Implementations -----------------*- C++
2+
//-*-===//
23
//
34
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45
// See https://llvm.org/LICENSE.txt for license information.
@@ -158,8 +159,8 @@ SmallVector<std::string, 8> getDeviceLibraries(const Compilation &C,
158159
bool IsSpirvAOT);
159160

160161
// Populates the SYCL device traits macros.
161-
void populateSYCLDeviceTraitsMacrosArgs(Compilation &C,
162-
const llvm::opt::ArgList &Args,
162+
void populateSYCLDeviceTraitsMacrosArgs(
163+
Compilation &C, const llvm::opt::ArgList &Args,
163164
const SmallVectorImpl<std::pair<const ToolChain *, StringRef>> &Targets);
164165

165166
bool shouldDoPerObjectFileLinking(const Compilation &C);
@@ -180,11 +181,11 @@ class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
180181
private:
181182
/// \return llvm-link output file name.
182183
const char *constructLLVMLinkCommand(Compilation &C, const JobAction &JA,
183-
const InputInfo &Output,
184-
const llvm::opt::ArgList &Args,
185-
llvm::StringRef SubArchName,
186-
llvm::StringRef OutputFilePrefix,
187-
const InputInfoList &InputFiles) const;
184+
const InputInfo &Output,
185+
const llvm::opt::ArgList &Args,
186+
llvm::StringRef SubArchName,
187+
llvm::StringRef OutputFilePrefix,
188+
const InputInfoList &InputFiles) const;
188189
};
189190

190191
/// Directly call FPGA Compiler and Linker
@@ -241,7 +242,7 @@ template <auto GPUArh> std::optional<StringRef> isGPUTarget(StringRef Target) {
241242
if (Target.starts_with(GPUArh)) {
242243
return resolveGenDevice(Target);
243244
}
244-
return std::nullopt;
245+
return std::nullopt;
245246
}
246247

247248
} // end namespace gen
@@ -280,9 +281,10 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
280281
llvm::opt::DerivedArgList *
281282
TranslateArgs(const llvm::opt::DerivedArgList &Args, StringRef BoundArch,
282283
Action::OffloadKind DeviceOffloadKind) const override;
283-
void addClangTargetOptions(const llvm::opt::ArgList &DriverArgs,
284-
llvm::opt::ArgStringList &CC1Args,
285-
Action::OffloadKind DeviceOffloadKind) const override;
284+
void
285+
addClangTargetOptions(const llvm::opt::ArgList &DriverArgs,
286+
llvm::opt::ArgStringList &CC1Args,
287+
Action::OffloadKind DeviceOffloadKind) const override;
286288
void AddImpliedTargetArgs(const llvm::Triple &Triple,
287289
const llvm::opt::ArgList &Args,
288290
llvm::opt::ArgStringList &CmdArgs,
@@ -324,7 +326,8 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
324326
CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const override;
325327
void AddSYCLIncludeArgs(const llvm::opt::ArgList &DriverArgs,
326328
llvm::opt::ArgStringList &CC1Args) const override;
327-
void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
329+
void
330+
AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
328331
llvm::opt::ArgStringList &CC1Args) const override;
329332
void AddClangCXXStdlibIncludeArgs(
330333
const llvm::opt::ArgList &Args,
@@ -357,7 +360,8 @@ inline bool isSYCLNativeCPU(const llvm::opt::ArgList &Args) {
357360
return false;
358361
}
359362

360-
inline bool isSYCLNativeCPU(const llvm::Triple &HostT, const llvm::Triple &DevT) {
363+
inline bool isSYCLNativeCPU(const llvm::Triple &HostT,
364+
const llvm::Triple &DevT) {
361365
return HostT == DevT;
362366
}
363367

0 commit comments

Comments
 (0)