Changeset View
Changeset View
Standalone View
Standalone View
outputview/outputfilteringstrategies.cpp
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Line(s) | 234 | { | |||
---|---|---|---|---|---|
253 | 253 | | |||
254 | // A list of filters for possible compiler, linker, and make errors | 254 | // A list of filters for possible compiler, linker, and make errors | ||
255 | static const ErrorFormat ERROR_FILTERS[] = { | 255 | static const ErrorFormat ERROR_FILTERS[] = { | ||
256 | #ifdef Q_OS_WIN | 256 | #ifdef Q_OS_WIN | ||
257 | // MSVC | 257 | // MSVC | ||
258 | ErrorFormat( QStringLiteral("^([a-zA-Z]:\\\\.+)\\(([1-9][0-9]*)\\): ((?:error|warning) .+\\:).*$"), 1, 2, 3 ), | 258 | ErrorFormat( QStringLiteral("^([a-zA-Z]:\\\\.+)\\(([1-9][0-9]*)\\): ((?:error|warning) .+\\:).*$"), 1, 2, 3 ), | ||
259 | #endif | 259 | #endif | ||
260 | // GCC - another case, eg. for #include "pixmap.xpm" which does not exists | 260 | // GCC - another case, eg. for #include "pixmap.xpm" which does not exists | ||
261 | ErrorFormat( QStringLiteral("^([^:\t]+):([0-9]+):([0-9]+):([^0-9]+)"), 1, 2, 4, 3 ), | 261 | ErrorFormat( QStringLiteral("^([^:\\t]+):([0-9]+):([0-9]+):([^0-9]+)"), 1, 2, 4, 3 ), | ||
262 | // ant | 262 | // ant | ||
263 | ErrorFormat( QStringLiteral("\\[javac\\][\\s]+([^:\t]+):([0-9]+): (warning: .*|error: .*)"), 1, 2, 3, QStringLiteral("javac")), | 263 | ErrorFormat( QStringLiteral("\\[javac\\][\\s]+([^:\\t]+):([0-9]+): (warning: .*|error: .*)"), 1, 2, 3, QStringLiteral("javac")), | ||
264 | // GCC | 264 | // GCC | ||
265 | ErrorFormat( QStringLiteral("^([^:\t]+):([0-9]+):([^0-9]+)"), 1, 2, 3 ), | 265 | ErrorFormat( QStringLiteral("^([^:\\t]+):([0-9]+):([^0-9]+)"), 1, 2, 3 ), | ||
266 | // GCC | 266 | // GCC | ||
267 | ErrorFormat( QStringLiteral("^(In file included from |[ ]+from )([^: \\t]+):([0-9]+)(:|,)(|[0-9]+)"), 2, 3, 5 ), | 267 | ErrorFormat( QStringLiteral("^(In file included from |[ ]+from )([^:\\t]+):([0-9]+)(:|,)(|[0-9]+)"), 2, 3, 5 ), | ||
268 | // ICC | 268 | // ICC | ||
269 | ErrorFormat( QStringLiteral("^([^: \\t]+)\\(([0-9]+)\\):([^0-9]+)"), 1, 2, 3, QStringLiteral("intel") ), | 269 | ErrorFormat( QStringLiteral("^([^:\\t]+)\\(([0-9]+)\\):([^0-9]+)"), 1, 2, 3, QStringLiteral("intel") ), | ||
270 | //libtool link | 270 | //libtool link | ||
271 | ErrorFormat( QStringLiteral("^(libtool):( link):( warning): "), 0, 0, 0 ), | 271 | ErrorFormat( QStringLiteral("^(libtool):( link):( warning): "), 0, 0, 0 ), | ||
272 | // make | 272 | // make | ||
273 | ErrorFormat( QStringLiteral("No rule to make target"), 0, 0, 0 ), | 273 | ErrorFormat( QStringLiteral("No rule to make target"), 0, 0, 0 ), | ||
274 | // cmake | 274 | // cmake | ||
275 | ErrorFormat( QStringLiteral("^([^: \\t]+):([0-9]+):"), 1, 2, 0, QStringLiteral("cmake") ), | 275 | ErrorFormat( QStringLiteral("^([^:\\t]+):([0-9]+):"), 1, 2, 0, QStringLiteral("cmake") ), | ||
276 | // cmake | 276 | // cmake | ||
277 | ErrorFormat( QStringLiteral("CMake (Error|Warning) (|\\([a-zA-Z]+\\) )(in|at) ([^:]+):($|[0-9]+)"), 4, 5, 1, QStringLiteral("cmake") ), | 277 | ErrorFormat( QStringLiteral("CMake (Error|Warning) (|\\([a-zA-Z]+\\) )(in|at) ([^:]+):($|[0-9]+)"), 4, 5, 1, QStringLiteral("cmake") ), | ||
278 | // cmake/automoc | 278 | // cmake/automoc | ||
279 | // example: AUTOMOC: error: /foo/bar.cpp The file includes (...), | 279 | // example: AUTOMOC: error: /foo/bar.cpp The file includes (...), | ||
280 | // example: AUTOMOC: error: /foo/bar.cpp: The file includes (...) | 280 | // example: AUTOMOC: error: /foo/bar.cpp: The file includes (...) | ||
281 | // note: ':' after file name isn't always appended, see http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=317d8498aa02c9f486bf5071963bb2034777cdd6 | 281 | // note: ':' after file name isn't always appended, see http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=317d8498aa02c9f486bf5071963bb2034777cdd6 | ||
282 | // example: AUTOGEN: error: /foo/bar.cpp: The file includes (...) | 282 | // example: AUTOGEN: error: /foo/bar.cpp: The file includes (...) | ||
283 | // note: AUTOMOC got renamed to AUTOGEN at some point | 283 | // note: AUTOMOC got renamed to AUTOGEN at some point | ||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |