diff options
| author | Eric Ludlam | 2014-11-26 11:24:39 -0500 |
|---|---|---|
| committer | David Engster | 2017-01-23 22:06:56 +0100 |
| commit | 50139fb088787eb573b88a1aab5f7d883a516990 (patch) | |
| tree | 596617c6ab362b37644d5cd49d6f289070880ac7 | |
| parent | 03bb495ea495dca46e418561461f7b1e71b0c214 (diff) | |
| download | emacs-50139fb088787eb573b88a1aab5f7d883a516990.tar.gz emacs-50139fb088787eb573b88a1aab5f7d883a516990.zip | |
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.
| -rw-r--r-- | lisp/cedet/semantic/scope.el | 3 |
1 files changed, 2 insertions, 1 deletions
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\"." | |||
| 415 | ;; the names in typelist. | 415 | ;; the names in typelist. |
| 416 | (while typelist | 416 | (while typelist |
| 417 | (let ((tt (semantic-tag-type (car typelist)))) | 417 | (let ((tt (semantic-tag-type (car typelist)))) |
| 418 | (when (and (stringp tt) (string= tt "namespace")) | 418 | (when (and (stringp tt) (or (string= tt "namespace") |
| 419 | (string= tt "enum"))) | ||
| 419 | ;; By using the typecache, our namespaces are pre-merged. | 420 | ;; By using the typecache, our namespaces are pre-merged. |
| 420 | (setq typelist2 (cons (car typelist) typelist2)) | 421 | (setq typelist2 (cons (car typelist) typelist2)) |
| 421 | )) | 422 | )) |