Skip to content

Commit 7ac283d

Browse files
committed
Revert "chore: PR self review"
This reverts commit 2e20fae.
1 parent 8065e62 commit 7ac283d

File tree

4 files changed

+69
-1
lines changed

4 files changed

+69
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
CompileFlags:
2+
Add:
3+
- -std=c++20
4+
- -Wall
5+
- -Wextra
6+
# Project includes
7+
- -I${COMPILE_COMMANDS_DIR}/cpp
8+
- -I${COMPILE_COMMANDS_DIR}/cpp/cipher
9+
- -I${COMPILE_COMMANDS_DIR}/cpp/ed25519
10+
- -I${COMPILE_COMMANDS_DIR}/cpp/hash
11+
- -I${COMPILE_COMMANDS_DIR}/cpp/hmac
12+
- -I${COMPILE_COMMANDS_DIR}/cpp/keys
13+
- -I${COMPILE_COMMANDS_DIR}/cpp/pbkdf2
14+
- -I${COMPILE_COMMANDS_DIR}/cpp/random
15+
- -I${COMPILE_COMMANDS_DIR}/cpp/utils
16+
- -I${COMPILE_COMMANDS_DIR}/deps/fastpbkdf2
17+
- -I${COMPILE_COMMANDS_DIR}/deps/ncrypto/include
18+
# Nitrogen generated includes
19+
- -I${COMPILE_COMMANDS_DIR}/nitrogen/generated/shared/c++
20+
- -I${COMPILE_COMMANDS_DIR}/nitrogen/generated/android/c++
21+
- -I${COMPILE_COMMANDS_DIR}/nitrogen/generated/android
22+
# React Native includes
23+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native/ReactAndroid/src/main/jni/first-party/fbjni/headers
24+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native/ReactCommon
25+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native/ReactCommon/jsi
26+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native/ReactCommon/callinvoker
27+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native/ReactCommon/react/nativemodule/core
28+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native/ReactAndroid/src/main/jni/react/turbomodule
29+
# Nitro modules
30+
- -I${COMPILE_COMMANDS_DIR}/node_modules/react-native-nitro-modules/cpp
31+
# OpenSSL
32+
- -I/opt/homebrew/include
33+
Remove: [-W*, -std=*]
34+
35+
Diagnostics:
36+
UnusedIncludes: Strict
37+
Suppress:
38+
- unused-includes
39+
- unknown-warning-option
40+
41+
Index:
42+
Background: Build
43+
44+
InlayHints:
45+
Enabled: Yes
46+
ParameterNames: Yes
47+
DeducedTypes: Yes
48+
49+
Hover:
50+
ShowAKA: Yes

packages/react-native-quick-crypto/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ README.md
44
ios/**
55

66
.cache/**
7-
.clangd
87
build/**
98
compile_commands.json

packages/react-native-quick-crypto/cpp/ed25519/HybridEdKeyPair.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
namespace margelo::nitro::crypto {
1010

11+
// using namespace facebook;
12+
1113
class HybridEdKeyPair : public HybridEdKeyPairSpec {
1214
public:
1315
HybridEdKeyPair() : HybridObject(TAG) {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// This is a dummy file to make clangd happy
2+
// It includes common headers to help clangd with indexing
3+
4+
#include <memory>
5+
#include <optional>
6+
#include <string>
7+
#include <variant>
8+
9+
// Include project headers
10+
#include "HybridKeyObjectHandleSpec.hpp"
11+
#include "JWK.hpp"
12+
#include "KeyDetail.hpp"
13+
#include "KeyType.hpp"
14+
#include "NamedCurve.hpp"
15+
16+
// Dummy function to prevent unused include warnings
17+
void dummy_function() {}

0 commit comments

Comments
 (0)