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