Skip to content

Commit 436d1aa

Browse files
committed
增加对 clangd 插件的支持
1 parent b5b58f0 commit 436d1aa

File tree

7 files changed

+83
-7
lines changed

7 files changed

+83
-7
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ Mkfile.old
5252
dkms.conf
5353

5454
build
55+
dist
56+
target
5557
.vscode
58+
.cache
5659
.config
5760
.config.old
5861
.config.mk
62+
.flash.conf.json
5963
!assets/vscode_*_debug/.vscode
6064

6165
# python

template/.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ BasedOnStyle: Google, IndentWidth: 4, TabWidth: 4, ColumnLimit: 0 }

template/.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Object files
5+
*.o
6+
*.ko
7+
*.obj
8+
*.elf
9+
10+
# Linker output
11+
*.ilk
12+
*.map
13+
*.exp
14+
15+
# Precompiled Headers
16+
*.gch
17+
*.pch
18+
19+
# Libraries
20+
*.lib
21+
*.a
22+
*.la
23+
*.lo
24+
25+
# Shared objects (inc. Windows DLLs)
26+
*.dll
27+
*.so
28+
*.so.*
29+
*.dylib
30+
31+
# Executables
32+
*.exe
33+
*.out
34+
*.app
35+
*.i*86
36+
*.x86_64
37+
*.hex
38+
39+
# Debug files
40+
*.dSYM/
41+
*.su
42+
*.idb
43+
*.pdb
44+
45+
# Kernel Module Compile Results
46+
*.mod*
47+
*.cmd
48+
.tmp_versions/
49+
modules.order
50+
Module.symvers
51+
Mkfile.old
52+
dkms.conf
53+
54+
build
55+
dist
56+
target
57+
.vscode
58+
.cache
59+
.config
60+
.config.old
61+
.config.mk
62+
.flash.conf.json
63+
!assets/vscode_*_debug/.vscode
64+
65+
# python
66+
*.pyc
67+
__pycache__
68+

template/.vscode/settings.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
23
"cmake.sourceDirectory": [
34
"${workspaceFolder}/test_sample",
45
"${workspaceFolder}/test_vcpkg",
56
],
67
"cmake.buildDirectory": "${sourceDirectory}/build",
7-
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
8-
"cmake.configureOnOpen": false
9-
}
8+
"cmake.autoSelectActiveFolder": true,
9+
"cmake.buildBeforeRun": true,
10+
"cmake.configureOnOpen": false,
11+
}

template/test_sample/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
**/build
2+
**/.cache
13

2-
3-
build
44
.config.mk
55
.flash.conf.json
66

template/test_vcpkg/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
**/build
2+
**/.cache
13

2-
3-
build
44
.config.mk
55
.flash.conf.json
66

tools/cmake/compile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# @license Apache 2.0
55
#
66

7+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
78

89
# Convert to cmake path(for Windows)
910
file(TO_CMAKE_PATH "${SDK_PATH}" SDK_PATH)

0 commit comments

Comments
 (0)