diff lisp/progmodes/compile.el @ 61425:6dfecf2a19ab

* compilation.txt (symbol): Added gcov-file gcov-bb-file gcov-never-called-line gcov-called-line . * progmodes/compile.el (compilation-error-regexp-alist-alist): Add regexp for gcov.
author Masatake YAMATO <jet@gyve.org>
date Sun, 10 Apr 2005 06:19:31 +0000
parents 31aa9a390538
children 51f159119616 146c086df160
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Sun Apr 10 04:20:14 2005 +0000
+++ b/lisp/progmodes/compile.el	Sun Apr 10 06:19:31 2005 +0000
@@ -280,7 +280,18 @@
 
     (4bsd
      "\\(?:^\\|::  \\|\\S ( \\)\\(/[^ \n\t()]+\\)(\\([0-9]+\\))\
-\\(?:: \\(warning:\\)?\\|$\\| ),\\)" 1 2 nil (3)))
+\\(?:: \\(warning:\\)?\\|$\\| ),\\)" 1 2 nil (3))
+
+    (gcov-file
+     "^ +-:    \\(0\\):Source:\\(.+\\)$" 2 1 nil 0)    
+    (gcov-bb-file
+     "^ +-:    \\(0\\):Object:\\(?:.+\\)$" nil 1 nil 0)    
+    (gcov-never-called-line
+     "^ +\\(#####\\): +\\([0-9]+\\):.+$" nil 2 nil 2 nil 
+     (1 compilation-error-face))
+    (gcov-called-line
+     "^ +[-0-9]+: +\\([1-9]\\|[0-9]\\{2,\\}\\):.*$" nil 1 nil 0)
+)
   "Alist of values for `compilation-error-regexp-alist'.")
 
 (defcustom compilation-error-regexp-alist
@@ -1846,6 +1857,9 @@
 	  ;; don't use a marker.  --Stef
 	  (if (> pos (point-min)) (copy-marker (1- pos)) pos))))
 
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.gcov\\'" . compilation-mode))
+
 (provide 'compile)
 
 ;; arch-tag: 12465727-7382-4f72-b234-79855a00dd8c