Merge pull request #7493 from wjandrea/patch-1
tasks.md: add `source` property to `problemMatcher`
This commit is contained in:
Коммит
2c2920691c
|
@ -639,6 +639,8 @@ A matcher that captures the above warning (and errors) looks like this:
|
|||
"owner": "cpp",
|
||||
// The file name for reported problems is relative to the opened folder.
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
// The name that will be shown as the source of the problem.
|
||||
"source": "gcc",
|
||||
// The actual pattern to match problems in the output.
|
||||
"pattern": {
|
||||
// The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
|
||||
|
@ -672,6 +674,7 @@ Here is a finished `tasks.json` file with the code above (comments removed) wrap
|
|||
"problemMatcher": {
|
||||
"owner": "cpp",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"source": "gcc",
|
||||
"pattern": {
|
||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
|
|
Загрузка…
Ссылка в новой задаче