]> code.delx.au - gnu-emacs/commitdiff
Adapt compile.el to changes in MSVC diagnostics format.
authorEli Zaretskii <eliz@gnu.org>
Sun, 14 Oct 2012 07:40:05 +0000 (09:40 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 14 Oct 2012 07:40:05 +0000 (09:40 +0200)
 lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
 Adjust the msft regexp to the output of Studio 2010, and move msft
 before edg-1.  See the discussion on emacs-devel,
 http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00579.html,
 for the details.

 etc/compilation.txt (msft): Add error messages in new Studio 2010
 format.

 test/automated/compile-tests.el (compile-tests--test-regexps-data):
 Add data for msft's new format.

etc/ChangeLog
etc/compilation.txt
lisp/ChangeLog
lisp/progmodes/compile.el
test/ChangeLog
test/automated/compile-tests.el

index 2bfae3696c528863d7ff6743de0bf6243c697d0d..0a1a5b8b8b7fd0ee3e089886b663f711fe1f65ca 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * compilation.txt (msft): Add error messages in new Studio 2010
+       format.
+
 2012-10-11  Kenichi Handa  <handa@gnu.org>
 
        * charsets/CNS-2.map, charsets/CNS-3.map, charsets/CNS-4.map,
index 269f8d23e6bfc2edb90908aa89a42d79b0843648..8d31847569c2e3e99b0e5ef79f786923da5e5f1a 100644 (file)
@@ -308,6 +308,13 @@ made it more strict about the error message that follows.
 keyboard handler.c(537) : warning C4005: 'min' : macro redefinition
 d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'
 d:\tmp\test.c(1145) : see declaration of 'nsRefPtr'
+1>test_main.cpp(29): error C2144: syntax error : 'int' should be preceded by ';'
+1>test_main.cpp(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
+1>
+1>Build FAILED.
+1>
+1>Time Elapsed 00:00:01.46
+========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
 
 * Open Watcom
index a31d474d8a3659987cba8ab219304a1a2802bd7a..7393bbc2845563ea30e5e91d2b30770f6b35618e 100644 (file)
@@ -1,3 +1,11 @@
+2012-10-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist):
+       Adjust the msft regexp to the output of Studio 2010, and move msft
+       before edg-1.  See the discussion on emacs-devel,
+       http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00579.html,
+       for the details.
+
 2012-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/eieio.el (eieio-oset-default, eieio-oset, oset-default)
index 09fba380f15b5703aada1c666e33c5730388d735..10fd7a75eaaa88b8eceaf0294f92e6bc90e3ddac 100644 (file)
@@ -171,6 +171,15 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
      "\\(?:^cucumber\\(?: -p [^[:space:]]+\\)?\\|#\\)\
 \\(?: \\)\\([^\(].*\\):\\([1-9][0-9]*\\)" 1 2)
 
+    (msft
+     ;; Must be before edg-1, so that MSVC's longer messages are
+     ;; considered before EDG.
+     ;; The message may be a "warning", "error", or "fatal error" with
+     ;; an error code, or "see declaration of" without an error code.
+     "^ *\\([0-9]+>\\)?\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)) ?\
+: \\(?:see declaration\\|\\(?:warnin\\(g\\)\\|[a-z ]+\\) C[0-9]+:\\)"
+     2 3 nil (4))
+
     (edg-1
      "^\\([^ \n]+\\)(\\([0-9]+\\)): \\(?:error\\|warnin\\(g\\)\\|remar\\(k\\)\\)"
      1 2 nil (3 . 4))
index a7e22aa9ae1256ee18a924d7bb21330bec27d4e6..72b44747bacd090b6ef26a23793d0776a49c9e22 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * automated/compile-tests.el (compile-tests--test-regexps-data):
+       Add new data for msft's new format.
+
 2012-09-08  Dmitry Gutov  <dgutov@yandex.ru>
 
        * automated/ruby-mode-tests.el:
index ecd0e8856f7be0ed5511f5a45ddf409481b6bdb7..9415ee3a17e8274f6eed6e5787590a290248ff8a 100644 (file)
      1 nil 23 "d:\\tmp\\test.c")
     ("d:\\tmp\\test.c(1145) : see declaration of 'nsRefPtr'"
      1 nil 1145 "d:\\tmp\\test.c")
+    ("1>test_main.cpp(29): error C2144: syntax error : 'int' should be preceded by ';'"
+     3 nil 29 "test_main.cpp")
+    ("1>test_main.cpp(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int"
+     3 nil 29 "test_main.cpp")
     ;; watcom
     ("..\src\ctrl\lister.c(109): Error! E1009: Expecting ';' but found '{'"
      1 nil 109 "..\src\ctrl\lister.c")