Skip to content

Commit 50eefe2

Browse files
committed
gitignore: Ignore some files related to vscode
The clangd plugin in vscode is useful for working on the code. However, in order to function, especially with numerous feature flags and such, it needs a `compile-commands.json` file. This can be generated for a given build with something like: bear --append -- cargo test --features sig-ecdsa which will create this file. The clangd plugin also creates a `.cache` directory to hold cached versions of its analysis. Support this usage by adding both of these to the .gitignore Signed-off-by: David Brown <david.brown@linaro.org>
1 parent 96576b3 commit 50eefe2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ rusty-tags.*
1616
.cproject
1717
.project
1818

19+
# Clangd creates this to cache its results
20+
.cache/
21+
22+
# The code cache is a transient file.
23+
compile_commands.json
24+
1925
# Compiled python modules.
2026
*.pyc
2127

0 commit comments

Comments
 (0)