Skip to content

Commit 4cb6602

Browse files
authored
[NFC] Fix formatting and semicolon (#50)
Clang-format Image.h and remove an unncessary semicolon in Pipeline.h
1 parent d33b0e5 commit 4cb6602

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/Image/Image.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ class ImageRef {
8686
}
8787

8888
ImageRef(const Buffer &B)
89-
: ImageRef(
90-
B.OutputProps.Height, B.OutputProps.Width,
91-
B.getSingleElementSize(), B.Channels,
92-
B.Format == DataFormat::Float32 || B.Format == DataFormat::Float64,
93-
llvm::StringRef(B.Data.get(), B.size())) {}
89+
: ImageRef(B.OutputProps.Height, B.OutputProps.Width,
90+
B.getSingleElementSize(), B.Channels,
91+
B.Format == DataFormat::Float32 ||
92+
B.Format == DataFormat::Float64,
93+
llvm::StringRef(B.Data.get(), B.size())) {}
9494

9595
uint32_t getHeight() const { return Height; }
9696
uint32_t getWidth() const { return Width; }

include/Support/Pipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ struct RootParameter {
162162
struct Settings {
163163
llvm::SmallVector<RootParameter> RootParams;
164164
};
165-
}; // namespace dx
165+
} // namespace dx
166166

167167
struct RuntimeSettings {
168168
dx::Settings DX;

0 commit comments

Comments
 (0)