add clang-tidy vscode extension

This commit is contained in:
Alex Bates 2020-08-18 00:28:37 +01:00
parent 0c318f87ab
commit 1012d8de77
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706
3 changed files with 17 additions and 5 deletions

View File

@ -2,5 +2,9 @@
"recommendations": [
"ms-vscode.cpptools",
"nanaian.vscode-star-rod",
],
"notskm.clang-tidy",
],
"unwantedRecommendations": [
"llvm-vs-code-extensions.vscode-clangd",
],
}

View File

@ -4,4 +4,12 @@
"files.eol": "\n",
"files.insertFinalNewline": true,
"editor.rulers": [120],
"clang-tidy.compilerArgs": [
"-fno-builtin",
"-std=gnu89",
"-Iinclude",
"-Iinclude/PR",
"-Isrc",
"-D_LANGUAGE_C",
],
}

8
.vscode/tasks.json vendored
View File

@ -9,7 +9,7 @@
{
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^(src\\/.*|include\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"severity": 3,
@ -20,7 +20,7 @@
"fileLocation": ["relative", "${workspaceFolder}"],
"severity": "error",
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
"regexp": "^(src\\/.*|include\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
"file": 1,
"line": 2,
"message": 3,
@ -44,7 +44,7 @@
"activeOnStart": true,
},
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^(src\\/.*|include\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"severity": 3,
@ -58,7 +58,7 @@
},
"severity": "error",
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
"regexp": "^(src\\/.*|include\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
"file": 1,
"line": 2,
"message": 3,