Last active
July 21, 2018 14:18
-
-
Save dungwinux/0c9d7e2337f6e448f1e5cdad93a8accc to your computer and use it in GitHub Desktop.
VSCode C++ tasks script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Build C++17", | |
"group": "build", | |
"command": "g++", | |
"args": [ | |
"-std=c++17", | |
"-O3", | |
"-Wall", | |
"-Wextra", | |
"-Wpedantic", | |
"${relativeFile}", | |
"-o", | |
"${fileBasenameNoExtension}" | |
], | |
"promptOnClose": false, | |
"problemMatcher": { | |
"owner": "cpp", | |
"fileLocation": [ | |
"relative", | |
"${workspaceFolder}" | |
], | |
"pattern": { | |
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", | |
"file": 1, | |
"line": 2, | |
"column": 3, | |
"severity": 4, | |
"message": 5 | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment