Skip to content

Commit d3e4a7d

Browse files
committed
Add VSCode workspace and clang tool configs [AP-3053]
1 parent 891aede commit d3e4a7d

File tree

4 files changed

+21
-118
lines changed

4 files changed

+21
-118
lines changed

.clang-format

Lines changed: 0 additions & 117 deletions
This file was deleted.

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bazel-out/../../../external/rules_swiftnav/clang_format/.clang-format

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bazel-out/../../../external/rules_swiftnav/clang_tidy/.clang-tidy

c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ endif()
3737
add_subdirectory(examples)
3838

3939
swift_validate_targets()
40-
swift_create_clang_tidy_targets()
40+
swift_create_clang_tidy_targets(DONT_GENERATE_CLANG_TIDY_CONFIG)

libsbp.code-workspace

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"editor.formatOnType": true,
9+
"editor.formatOnSave": true,
10+
"editor.formatOnPaste": true,
11+
"C_Cpp.clang_format_style": "file",
12+
"C_Cpp.formatting": "clangFormat",
13+
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
14+
"C_Cpp.codeAnalysis.runAutomatically": true,
15+
"C_Cpp.default.compileCommands": "compile_commands.json",
16+
"C_Cpp.clang_format_path": "~/.local/bin/clang-format",
17+
}
18+
}

0 commit comments

Comments
 (0)