Skip to content

Commit 56a0f57

Browse files
committed
chore: use clang-format-19 as libsession-util
1 parent f1bc003 commit 56a0f57

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

include/meta/meta_base_wrapper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace session::nodeapi {
1212
class MetaBaseWrapper {
1313

1414
public:
15-
explicit MetaBaseWrapper(){};
15+
explicit MetaBaseWrapper() {};
1616

1717
virtual ~MetaBaseWrapper() = default;
1818

include/utilities.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ std::vector<unsigned char> from_base64_to_vector(std::string_view x);
401401
// Concept to match containers with a size() method
402402
template <typename T>
403403
concept HasSize = requires(T t) {
404-
{ t.size() } -> std::convertible_to<size_t>;
404+
{
405+
t.size()
406+
} -> std::convertible_to<size_t>;
405407
};
406408

407409
template <HasSize T>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"update_version": "sh update_version.sh",
1313
"clean": "rimraf .cache build",
1414
"lint:cpp": "cppcheck --std=c++20 -j8 --quiet src libsession-util/src",
15-
"lint": "find src include -name '*.cpp' -o -name '*.hpp' | xargs clang-format -i",
15+
"lint": "find src include -name '*.cpp' -o -name '*.hpp' | xargs clang-format-19 -i",
1616
"install": "cmake-js build --runtime=electron --runtime-version=34.2.0 --CDSUBMODULE_CHECK=OFF --CDLOCAL_MIRROR=https://oxen.rocks/deps --CDENABLE_ONIONREQ=OFF --CDWITH_TESTS=OFF",
1717
"prepare_release": "sh prepare_release.sh",
1818
"dedup": "npx --yes yarn-deduplicate yarn.lock"

0 commit comments

Comments
 (0)