Skip to content

Commit

Permalink
Add EOF EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
markkohdev committed Aug 19, 2024
1 parent 3f87ed0 commit ba06fd2
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions cpp/.clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
BasedOnStyle: LLVM
IndentWidth: 2
InsertNewlineAtEOF: true
---
Language: Cpp
# Use 120 columns since we have big screens now
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/Enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ std::ostream &operator<<(std::ostream &os, const SpaceType space) {
std::ostream &operator<<(std::ostream &os, const StorageDataType sdt) {
os << toString(sdt);
return os;
}
}
2 changes: 1 addition & 1 deletion cpp/src/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ static std::unique_ptr<Metadata::V1> loadFromStream(std::shared_ptr<InputStream>
};

} // namespace Metadata
}; // namespace voyager
}; // namespace voyager
2 changes: 1 addition & 1 deletion cpp/src/StreamUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ template <typename T> static void readBinaryPOD(std::shared_ptr<InputStream> in,
throw std::runtime_error("Failed to read " + std::to_string(sizeof(T)) + " bytes from stream! Got " +
std::to_string(bytesRead) + ".");
}
}
}
2 changes: 1 addition & 1 deletion cpp/src/array_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@ std::string toFloatVectorString(data_t *vec, size_t size) {
template <typename dist_t, typename data_t = dist_t, typename scalefactor = std::ratio<1, 1>>
std::string toFloatVectorString(std::vector<data_t> vec) {
return toFloatVectorString<dist_t, data_t, scalefactor>(vec.data(), vec.size());
}
}
2 changes: 1 addition & 1 deletion cpp/src/std_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ void mergePriorityQueues(std::priority_queue<std::tuple<dist_t, indexID_t, label

while (dest.size() > maxElements)
dest.pop();
}
}
2 changes: 1 addition & 1 deletion cpp/test/doctest_setup.cpp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "doctest.h"
2 changes: 1 addition & 1 deletion java/JavaInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ class JavaInputStream : public InputStream {
jobject inputStream;
std::vector<char> peekValue;
long long bytesRead = 0;
};
};
2 changes: 1 addition & 1 deletion java/JavaOutputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ class JavaOutputStream : public OutputStream {
private:
JNIEnv *env;
jobject outputStream;
};
};
2 changes: 1 addition & 1 deletion python/src/PythonFileLike.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ class PythonFileLike {

protected:
py::object fileLike;
};
};
2 changes: 1 addition & 1 deletion python/src/PythonInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ class PythonInputStream : public InputStream, PythonFileLike {
long long totalLength = -1;
std::vector<char> peekValue;
bool lastReadWasSmallerThanExpected = false;
};
};
2 changes: 1 addition & 1 deletion python/src/PythonOutputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ class PythonOutputStream : public OutputStream, public PythonFileLike {

return true;
}
};
};

0 comments on commit ba06fd2

Please sign in to comment.