Skip to content

Commit 0196c21

Browse files
committed
chore: update cpp properties file settings
1 parent effaa60 commit 0196c21

File tree

4 files changed

+40
-3
lines changed

4 files changed

+40
-3
lines changed

.vscode/c_cpp_properties.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"${workspaceFolder}/include/**",
8+
"${workspaceFolder}/libsession-util/include/**",
9+
"${workspaceFolder}/node_modules/node-addon-api/",
10+
"${workspaceFolder}/node_modules/node-api-headers/include/"
11+
],
12+
"defines": [],
13+
"compilerPath": "/usr/bin/clang",
14+
"cStandard": "c17",
15+
"cppStandard": "c++20",
16+
"intelliSenseMode": "linux-clang-x64"
17+
},
18+
{
19+
"name": "Mac",
20+
"includePath": [
21+
"${workspaceFolder}/**",
22+
"${workspaceFolder}/include/**",
23+
"${workspaceFolder}/libsession-util/include/**",
24+
"${workspaceFolder}/node_modules/node-addon-api/",
25+
"${workspaceFolder}/node_modules/node-api-headers/include/"
26+
],
27+
"defines": [],
28+
"compilerPath": "/usr/bin/clang",
29+
"cStandard": "c17",
30+
"cppStandard": "c++20",
31+
"intelliSenseMode": "macos-clang-arm64"
32+
}
33+
],
34+
"version": 4
35+
}

include/meta/meta_base_wrapper.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <napi.h>
44

5+
#include <optional>
56
#include <span>
67
#include <vector>
78

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"scripts": {
1212
"update_version": "sh update_version.sh",
1313
"clean": "rimraf .cache build",
14+
"lint:cpp": "cppcheck --std=c++20 -j8 --quiet src libsession-util/src",
1415
"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",
1516
"prepare_release": "sh prepare_release.sh",
1617
"dedup": "npx --yes yarn-deduplicate yarn.lock"

src/groups/meta_group_wrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#include "groups/meta_group_wrapper.hpp"
22

33
#include <napi.h>
4+
#include <oxenc/bt_producer.h>
45

56
#include <memory>
7+
#include <session/types.hpp>
8+
#include <session/util.hpp>
69
#include <span>
710
#include <vector>
811

9-
#include "oxenc/bt_producer.h"
10-
#include "session/types.hpp"
11-
1212
namespace session::nodeapi {
1313

1414
Napi::Object member_to_js(const Napi::Env& env, const member& info, const member::Status& status) {

0 commit comments

Comments
 (0)