Skip to content

Commit 2538dcd

Browse files
authored
updated readme to direct vs code users to cppcheck official extension [skip ci] (#8657)
1 parent af63e5f commit 2538dcd

1 file changed

Lines changed: 2 additions & 64 deletions

File tree

readme.md

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -108,71 +108,9 @@ If you do not wish to use the Visual Studio IDE, you can compile Cppcheck from t
108108
msbuild cppcheck.sln
109109
```
110110

111-
### VS Code (on Windows)
112-
113-
Install MSYS2 to get GNU toolchain with g++ and gdb (<https://www.msys2.org/>).
114-
Create a `settings.json` file in the `.vscode` folder with the following content (adjust path as necessary):
115-
116-
```json
117-
{
118-
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
119-
"terminal.integrated.shellArgs.windows": [
120-
"--login",
121-
],
122-
"terminal.integrated.env.windows": {
123-
"CHERE_INVOKING": "1",
124-
"MSYSTEM": "MINGW64",
125-
}
126-
}
127-
```
111+
### VS Code
128112

129-
Run `make` in the terminal to build Cppcheck.
130-
131-
For debugging create a `launch.json` file in the `.vscode` folder with the following content, which covers configuration for debugging Cppcheck and `misra.py`:
132-
133-
```json
134-
{
135-
// Use IntelliSense to learn about possible attributes.
136-
// Hover to view descriptions of existing attributes.
137-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
138-
"version": "0.2.0",
139-
"configurations": [
140-
{
141-
"name": "cppcheck",
142-
"type": "cppdbg",
143-
"request": "launch",
144-
"program": "${workspaceFolder}/cppcheck.exe",
145-
"args": [
146-
"--dump",
147-
"${workspaceFolder}/addons/test/misra/misra-test.c"
148-
],
149-
"stopAtEntry": false,
150-
"cwd": "${workspaceFolder}",
151-
"environment": [],
152-
"externalConsole": true,
153-
"MIMode": "gdb",
154-
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
155-
"setupCommands": [
156-
{
157-
"description": "Enable pretty-printing for gdb",
158-
"text": "-enable-pretty-printing",
159-
"ignoreFailures": true
160-
}
161-
]
162-
},
163-
{
164-
"name": "misra.py",
165-
"type": "python",
166-
"request": "launch",
167-
"program": "${workspaceFolder}/addons/misra.py",
168-
"console": "integratedTerminal",
169-
"args": [
170-
"${workspaceFolder}/addons/test/misra/misra-test.c.dump"
171-
]
172-
}
173-
]
174-
}
175-
```
113+
Cppcheck Official is an extension officially supported by the cppcheck team allowing you to easily use cppcheck in VS Code. You can find it in VS Code Marketplace through the extension tab in your IDE. For instructions on how to set it up and use it, see the readme on the github page: <https://github.com/cppchecksolutions/vscode-cppcheck-official>
176114

177115
### Qt Creator + MinGW
178116

0 commit comments

Comments
 (0)