From: Eric Ludlam Date: Wed, 26 Nov 2014 16:24:39 +0000 (-0500) Subject: semantic: Fix scope calculation for 'enum' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=50139fb088787eb573b88a1aab5f7d883a516990;p=emacs.git semantic: Fix scope calculation for 'enum' * lisp/cedet/semantic/scope.el (semantic-analyze-scoped-tags-default): Add "enum" as pulling contents into parent scope similar to namespace. --- diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el index 36a08d208af..813919637cb 100644 --- a/lisp/cedet/semantic/scope.el +++ b/lisp/cedet/semantic/scope.el @@ -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)) ))