Skip to content

Commit d520852

Browse files
committed
πŸ§‘β€πŸ’» (clangd): Create .clangd config file
1 parent de37968 commit d520852

File tree

4 files changed

+83
-17
lines changed

4 files changed

+83
-17
lines changed

β€Ž.clangd

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Leka - LekaOS
2+
# Copyright APF France handicap
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
CompileFlags:
6+
Compiler: "arm-none-eabi-g++"
7+
CompilationDatabase: "_build_cmake_tools"
8+
Add:
9+
- "-D__ARM_ARCH=7"
10+
- "-D__ARM_ARCH_7EM__=1"
11+
- "-D__ARM_ARCH_7M__=1"
12+
- "-D__ARM_ARCH_7EM"
13+
- "-D__ARM_ARCH_7M"
14+
- "-DSTM32F769xx"
15+
- "-mcpu=cortex-m7"
16+
17+
Diagnostics:
18+
UnusedIncludes: Strict
19+
MissingIncludes: Strict
20+
21+
Index:
22+
Background: Build
23+
24+
Hover:
25+
ShowAKA: True
26+
27+
InlayHints:
28+
BlockEnd: True
29+
Designators: True
30+
Enabled: True
31+
ParameterNames: True
32+
DeducedTypes: True
33+
TypeNameLimit: 24

β€Ž.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ indent_size = 4
2929
indent_style = space
3030
indent_size = 2
3131

32-
[.clang-{format,tidy}]
32+
[.clang{d,-format,-tidy}]
3333
indent_style = space
3434
indent_size = 2
3535

β€Ž.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ _build*
1010
_coverage*
1111
cmake/config/
1212
.cache
13-
.clangd
1413
*.ioc.csv
1514
cube_path.json
1615
_release

β€Ž.vscode/settings.template.json

+49-15
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"files.associations": {
33
".clang-format": "yaml",
44
".clang-tidy": "yaml",
5+
".clangd": "yaml",
6+
"*.xcstrings": "json",
57
"*.orig": "cpp",
68
"any": "cpp",
79
"array": "cpp",
@@ -65,11 +67,12 @@
6567
"typeinfo": "cpp",
6668
"variant": "cpp",
6769
"lstd_*": "cpp",
68-
"mstd_*": "cpp"
70+
"mstd_*": "cpp",
71+
"mstd_iterator": "cpp",
72+
"mstd_mutex": "cpp"
6973
},
7074
"files.exclude": {
71-
".cache": true,
72-
".clangd": true
75+
".cache": true
7376
},
7477
"editor.formatOnSave": true,
7578
"cmake.ignoreKitEnv": true,
@@ -80,6 +83,7 @@
8083
"cmake.generator": "Ninja",
8184
"cmake.configureSettings": {
8285
"TARGET_BOARD": "LEKA_V1_2_DEV",
86+
"MBED_TARGET": "LEKA_V1_2_DEV",
8387
"OS_VERSION": "0.0.0",
8488
"ENABLE_LOG_DEBUG": "ON",
8589
"ENABLE_SYSTEM_STATS": "ON",
@@ -88,17 +92,7 @@
8892
"CMAKE_BUILD_TYPE": "Debug"
8993
},
9094
"clangd.checkUpdates": true,
91-
"clangd.arguments": [
92-
// On Apple Intel, un comment the following line
93-
"--query-driver=/usr/local/bin/arm-none-eabi*",
94-
// On Apple Silicon, un comment the following line
95-
// "--query-driver=/opt/homebrew/bin/arm-none-eabi*",
96-
"--log=verbose",
97-
"--completion-style=detailed",
98-
"--clang-tidy",
99-
"--header-insertion=never",
100-
"--suggest-missing-includes"
101-
],
95+
"clangd.arguments": ["--query-driver=**/arm-none-eabi-*"],
10296
"markdownlint.config": {
10397
"MD002": false,
10498
"MD007": {
@@ -111,5 +105,45 @@
111105
"style": "one"
112106
},
113107
"MD033": false
114-
}
108+
},
109+
"cSpell.words": [
110+
"activitykit",
111+
"behaviorkit",
112+
"coredma",
113+
"coredsi",
114+
"coreimu",
115+
"corelcd",
116+
"corell",
117+
"coreltdc",
118+
"coreotm",
119+
"coresdram",
120+
"corevideo",
121+
"DSTM",
122+
"eabi",
123+
"imukit",
124+
"ledkit",
125+
"Leka",
126+
"mbed",
127+
"mcpu",
128+
"mcuboot",
129+
"MOSI",
130+
"motionkit",
131+
"mstd",
132+
"NFC",
133+
"OTM",
134+
"qspi",
135+
"QSPI",
136+
"QSPIF",
137+
"reinforcerkit",
138+
"rfid",
139+
"rfidkit",
140+
"SPI",
141+
"STM",
142+
"TFT",
143+
"UART",
144+
"USB",
145+
"WIFI",
146+
"XIP",
147+
"XIPM"
148+
]
115149
}

0 commit comments

Comments
Β (0)