diff options
| author | Jason Henline <jhen@google.com> | 2016-09-13 19:25:43 +0000 |
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-09-13 19:25:43 +0000 |
| commit | fb621479491f353562ec745a3daa402123110615 (patch) | |
| tree | d056f6065c45f1d2ea316a6a3ebfe44b81d1e54a /parallel-libs/streamexecutor/lib/Kernel.cpp | |
| parent | 6956d290341b3ceb7fb7599c9c772c08b0c2450a (diff) | |
| download | bcm5719-llvm-fb621479491f353562ec745a3daa402123110615.tar.gz bcm5719-llvm-fb621479491f353562ec745a3daa402123110615.zip | |
[SE] Add .clang-format
Summary:
The .clang-tidy file is copied from the top-level LLVM source directory.
Also fix warnings generated by clang-format:
* Moved SimpleHostPlatformDevice.h so its header include guard could
have the right format.
* Changed signatures of methods taking llvm::Twine by value to take it
by const ref instead.
* Add "noexcept" to some move constructors and assignment operators.
* Removed a bunch of places where single-statement loops and
conditionals were surrounded with braces. (This was not found by the
current clang-tidy, but with a local patch that I hope to upstream
soon.)
Reviewers: jlebar, jprice
Subscribers: parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D24468
llvm-svn: 281374
Diffstat (limited to 'parallel-libs/streamexecutor/lib/Kernel.cpp')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/Kernel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parallel-libs/streamexecutor/lib/Kernel.cpp b/parallel-libs/streamexecutor/lib/Kernel.cpp index 55a83514f48..911ac6656aa 100644 --- a/parallel-libs/streamexecutor/lib/Kernel.cpp +++ b/parallel-libs/streamexecutor/lib/Kernel.cpp @@ -33,7 +33,7 @@ KernelBase::KernelBase(PlatformDevice *D, const void *PlatformKernelHandle, "cannot construct a kernel object with a null platform kernel handle"); } -KernelBase::KernelBase(KernelBase &&Other) +KernelBase::KernelBase(KernelBase &&Other) noexcept : PDevice(Other.PDevice), PlatformKernelHandle(Other.PlatformKernelHandle), Name(std::move(Other.Name)), DemangledName(std::move(Other.DemangledName)) { @@ -41,7 +41,7 @@ KernelBase::KernelBase(KernelBase &&Other) Other.PlatformKernelHandle = nullptr; } -KernelBase &KernelBase::operator=(KernelBase &&Other) { +KernelBase &KernelBase::operator=(KernelBase &&Other) noexcept { PDevice = Other.PDevice; PlatformKernelHandle = Other.PlatformKernelHandle; Name = std::move(Other.Name); |

