diff options
| author | Richard M. Stallman | 1994-07-27 17:52:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-27 17:52:02 +0000 |
| commit | d86bdede4dd6dd10766662350fb91e87cec81031 (patch) | |
| tree | e586ba4747b387f0dd50ad0216b492b7ebbb4d8f | |
| parent | 2e46c7c6b3dda2fbff007e47070a47e903cbb1f6 (diff) | |
| download | emacs-d86bdede4dd6dd10766662350fb91e87cec81031.tar.gz emacs-d86bdede4dd6dd10766662350fb91e87cec81031.zip | |
(compilation-error-regexp-alist): Fix bug in Borland
C++ change. Make first regexp reject cases that give column
numbers. Add new regexp for GNU format with column numbers.
| -rw-r--r-- | lisp/progmodes/compile.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 1dac4b55f89..449a2ebf17a 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -100,7 +100,7 @@ or when it is used with \\[next-error] or \\[compile-goto-error].") | |||
| 100 | 100 | ||
| 101 | (defvar compilation-error-regexp-alist | 101 | (defvar compilation-error-regexp-alist |
| 102 | '( | 102 | '( |
| 103 | ;; NOTE! This first one is repeated in grep-regexp-alist, below. | 103 | ;; NOTE! See also grep-regexp-alist, below. |
| 104 | 104 | ||
| 105 | ;; 4.3BSD grep, cc, lint pass 1: | 105 | ;; 4.3BSD grep, cc, lint pass 1: |
| 106 | ;; /usr/src/foo/foo.c(8): warning: w may be used before set | 106 | ;; /usr/src/foo/foo.c(8): warning: w may be used before set |
| @@ -112,11 +112,14 @@ or when it is used with \\[next-error] or \\[compile-goto-error].") | |||
| 112 | ;; Error ping.c 15: Unable to open include file 'sys/types.h' | 112 | ;; Error ping.c 15: Unable to open include file 'sys/types.h' |
| 113 | ;; Warning ping.c 68: Call to function 'func' with no prototype | 113 | ;; Warning ping.c 68: Call to function 'func' with no prototype |
| 114 | ;; | 114 | ;; |
| 115 | ;; We refuse to match file:number:number | ||
| 116 | ;; because we want to leave that for another case (see below, GNAT). | ||
| 117 | ;; | ||
| 115 | ;; We'll insist that the number be followed by a colon or closing | 118 | ;; We'll insist that the number be followed by a colon or closing |
| 116 | ;; paren, because otherwise this matches just about anything | 119 | ;; paren, because otherwise this matches just about anything |
| 117 | ;; containing a number with spaces around it. | 120 | ;; containing a number with spaces around it. |
| 118 | ("\n\\(Error\\|Warning\\)?[ \t]*\\([^:( \t\n]+\\)\ | 121 | ("\n\\(Error \\|Warning \\)?[ \t]*\\([^:( \t\n]+\\)\ |
| 119 | \[:(]?[ \t]*\\([0-9]+\\)[:) \t]" 2 3) | 122 | \[:(]?[ \t]*\\([0-9]+\\)\\([) \t]\\|:[^0-9\n]\\)" 2 3) |
| 120 | 123 | ||
| 121 | ;; 4.3BSD lint pass 2 | 124 | ;; 4.3BSD lint pass 2 |
| 122 | ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) | 125 | ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) |
| @@ -169,6 +172,9 @@ of[ \t]+\"?\\([^\":\n]+\\)\"?:" 3 2) | |||
| 169 | ;; E, file.cc(35,52) Illegal operation on pointers | 172 | ;; E, file.cc(35,52) Illegal operation on pointers |
| 170 | ("\n[EW], \\([^(\n]*\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)" 1 2 3) | 173 | ("\n[EW], \\([^(\n]*\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)" 1 2 3) |
| 171 | 174 | ||
| 175 | ;; GNAT compiler v1.82 | ||
| 176 | ;; foo.adb:2:1: Unit name does not match file name | ||
| 177 | ("\n\\([^ \n\t:]+\\):\\([0-9]+\\):\\([0-9]+\\)[: \t]" 1 2 3) | ||
| 172 | ) | 178 | ) |
| 173 | "Alist that specifies how to match errors in compiler output. | 179 | "Alist that specifies how to match errors in compiler output. |
| 174 | Each element has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX]). | 180 | Each element has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX]). |