diff options
author | Daniel MartÃn <mardani29@yahoo.es> | 2020-07-26 15:24:59 +0200 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-08-28 14:45:15 -0400 |
commit | 6e25d615449733d12ef82940903f3fda6f8744dc (patch) | |
tree | 868db3397e37be751a418309d3289ad3b0f10566 /test/lisp/progmodes/compile-tests.el | |
parent | 2af8f7a1e42fa5ae5b87ccada63360c8969a83cf (diff) | |
download | emacs-6e25d615449733d12ef82940903f3fda6f8744dc.tar.gz emacs-6e25d615449733d12ef82940903f3fda6f8744dc.tar.bz2 emacs-6e25d615449733d12ef82940903f3fda6f8744dc.zip |
Add support for parsing column numbers in Visual Studio messages
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Extend regular expression to match optional column numbers.
*
test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data):
Add a test.
* test/lisp/progmodes/compile-tests.el (compile-test-error-regexps):
Update the total number of compilation errors in a test.
* etc/compilation.txt: Update compilation.txt with the newly supported
message format.
* etc/NEWS: Advertise the feature.
Diffstat (limited to 'test/lisp/progmodes/compile-tests.el')
-rw-r--r-- | test/lisp/progmodes/compile-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el index d566e7dd862..819f2e78c2a 100644 --- a/test/lisp/progmodes/compile-tests.el +++ b/test/lisp/progmodes/compile-tests.el @@ -267,6 +267,8 @@ 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") + ("C:\\tmp\\test.cpp(101,11): error C4101: 'bias0123': unreferenced local variable [C:\\tmp\\project.vcxproj]" + 1 11 101 "C:\\tmp\\test.cpp") ;; watcom ("..\\src\\ctrl\\lister.c(109): Error! E1009: Expecting ';' but found '{'" 1 nil 109 "..\\src\\ctrl\\lister.c") @@ -434,7 +436,7 @@ The test data is in `compile-tests--test-regexps-data'." (compilation-num-warnings-found 0) (compilation-num-infos-found 0)) (mapc #'compile--test-error-line compile-tests--test-regexps-data) - (should (eq compilation-num-errors-found 94)) + (should (eq compilation-num-errors-found 95)) (should (eq compilation-num-warnings-found 35)) (should (eq compilation-num-infos-found 28))))) |