Skip to content

Commit 3cbe0f1

Browse files
author
Shivendra Devadhe
committed
style: fixed cpp file linting and format
1 parent c200963 commit 3cbe0f1

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

cpp/src/graphar/filesystem.cc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ Result<T> FileSystem::ReadFileToValue(const std::string& path) const noexcept {
212212
}
213213

214214
template <>
215-
Result<std::string> FileSystem::ReadFileToValue(
216-
const std::string& path) const noexcept {
215+
Result<std::string> FileSystem::ReadFileToValue(const std::string& path) const
216+
noexcept {
217217
GAR_RETURN_ON_ARROW_ERROR_AND_ASSIGN(auto access_file,
218218
arrow_fs_->OpenInputFile(path));
219219
GAR_RETURN_ON_ARROW_ERROR_AND_ASSIGN(auto bytes, access_file->GetSize());
@@ -291,8 +291,8 @@ Status FileSystem::WriteTableToFile(
291291
}
292292

293293
Status FileSystem::WriteLabelTableToFile(
294-
const std::shared_ptr<arrow::Table>& table,
295-
const std::string& path) const noexcept {
294+
const std::shared_ptr<arrow::Table>& table, const std::string& path) const
295+
noexcept {
296296
// try to create the directory, oss filesystem may not support this, ignore
297297
ARROW_UNUSED(arrow_fs_->CreateDir(path.substr(0, path.find_last_of("/"))));
298298
GAR_RETURN_ON_ARROW_ERROR_AND_ASSIGN(auto output_stream,
@@ -396,6 +396,7 @@ Status FinalizeS3() {
396396
template Result<IdType> FileSystem::ReadFileToValue<IdType>(
397397
const std::string&) const noexcept;
398398
/// template specialization for std::string
399-
template Status FileSystem::WriteValueToFile<IdType>(
400-
const IdType&, const std::string&) const noexcept;
399+
template Status FileSystem::WriteValueToFile<IdType>(const IdType&,
400+
const std::string&) const
401+
noexcept;
401402
} // namespace graphar

cpp/src/graphar/filesystem.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class FileSystem {
104104
* @return A Status indicating OK if successful, or an error if unsuccessful.
105105
*/
106106
template <typename T>
107-
Status WriteValueToFile(const T& value,
108-
const std::string& path) const noexcept;
107+
Status WriteValueToFile(const T& value, const std::string& path) const
108+
noexcept;
109109

110110
/**
111111
* @brief Write a table to a file with a specific type.
@@ -115,10 +115,10 @@ class FileSystem {
115115
* @param options Options for writing the table, such as compression.
116116
* @return A Status indicating OK if successful, or an error if unsuccessful.
117117
*/
118-
Status WriteTableToFile(
119-
const std::shared_ptr<arrow::Table>& table, FileType file_type,
120-
const std::string& path,
121-
const std::shared_ptr<WriterOptions>& options) const noexcept;
118+
Status WriteTableToFile(const std::shared_ptr<arrow::Table>& table,
119+
FileType file_type, const std::string& path,
120+
const std::shared_ptr<WriterOptions>& options) const
121+
noexcept;
122122

123123
/**
124124
* @brief Write a label table to a file with parquet type.

0 commit comments

Comments
 (0)