69 lines
1.2 KiB
Plaintext
69 lines
1.2 KiB
Plaintext
# clangd configuration for clavitor-cli
|
|
# Place this at project root
|
|
|
|
CompileFlags:
|
|
# Base C11 standard
|
|
Add:
|
|
- -std=c11
|
|
- -Wall
|
|
- -Wextra
|
|
- -DNDEBUG
|
|
- -D_GNU_SOURCE
|
|
# Include paths
|
|
- -Ivendor/bearssl/inc
|
|
- -Ivendor/bearssl/src
|
|
- -Ivendor/quickjs
|
|
- -Ivendor/cjson
|
|
- -Isrc
|
|
# QuickJS specific defines
|
|
- -DCONFIG_VERSION=\"2025-04-26\"
|
|
- -DCONFIG_BIGNUM
|
|
|
|
---
|
|
# Different settings for QuickJS source files (uses gnu11)
|
|
If:
|
|
PathMatch: vendor/quickjs/.*
|
|
CompileFlags:
|
|
Add:
|
|
- -std=gnu11
|
|
- -DCONFIG_VERSION=\"2025-04-26\"
|
|
- -DCONFIG_BIGNUM
|
|
- -D_GNU_SOURCE
|
|
- -Ivendor/quickjs
|
|
Remove:
|
|
- -std=c11
|
|
|
|
---
|
|
# BearSSL source files
|
|
If:
|
|
PathMatch: vendor/bearssl/.*
|
|
CompileFlags:
|
|
Add:
|
|
- -Ivendor/bearssl/inc
|
|
- -Ivendor/bearssl/src
|
|
|
|
---
|
|
# cJSON source files
|
|
If:
|
|
PathMatch: vendor/cjson/.*
|
|
CompileFlags:
|
|
Add:
|
|
- -Ivendor/cjson
|
|
|
|
Index:
|
|
# Enable background indexing
|
|
Background: Build
|
|
|
|
Diagnostics:
|
|
# Show all diagnostics
|
|
UnusedIncludes: Strict
|
|
MissingIncludes: Strict
|
|
|
|
Completion:
|
|
# Include all completion results
|
|
AllScopes: true
|
|
|
|
Hover:
|
|
# Show more info in hover
|
|
ShowAKA: true
|