From 50139fb088787eb573b88a1aab5f7d883a516990 Mon Sep 17 00:00:00 2001 From: Eric Ludlam Date: Wed, 26 Nov 2014 11:24:39 -0500 Subject: [PATCH] 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. --- lisp/cedet/semantic/scope.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) )) -- 2.39.5