]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic: Fix scope calculation for 'enum'
authorEric Ludlam <zappo@gnu.org>
Wed, 26 Nov 2014 16:24:39 +0000 (11:24 -0500)
committerDavid Engster <deng@randomsample.de>
Mon, 23 Jan 2017 21:06:56 +0000 (22:06 +0100)
* lisp/cedet/semantic/scope.el (semantic-analyze-scoped-tags-default):
 Add "enum" as pulling contents into parent scope similar to
 namespace.

lisp/cedet/semantic/scope.el

index 36a08d208af56ba553a783377fd6752441321173..813919637cb97a1d28044ca19393941557fbe7cb 100644 (file)
@@ -415,7 +415,8 @@ implicit \"object\"."
     ;; the names in typelist.
     (while typelist
       (let ((tt (semantic-tag-type (car typelist))))
-       (when (and (stringp tt) (string= tt "namespace"))
+       (when (and (stringp tt) (or (string= tt "namespace")
+                                   (string= tt "enum")))
          ;; By using the typecache, our namespaces are pre-merged.
          (setq typelist2 (cons (car typelist) typelist2))
          ))