]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic: Do not add enum-type for every type
authorDavid Engster <deng@randomsample.de>
Sat, 24 Jan 2015 10:14:38 +0000 (11:14 +0100)
committerDavid Engster <deng@randomsample.de>
Thu, 19 Jan 2017 21:34:53 +0000 (22:34 +0100)
* lisp/cedet/semantic/bovine/c.el (semantic-c-reconstitute-token): Do
  not add :enum-type here, since the Bovinator will do this for ENUMs
  already.

lisp/cedet/semantic/bovine/c.el

index bef4b179b23c37a3903c0983ee5d4d966fcb63ad..c6a2ef9bd256ab6414c03138798178a5f5b37f1a 100644 (file)
@@ -1339,6 +1339,7 @@ Optional argument STAR and REF indicate the number of * and & in the typedef."
            :constant-flag (if (member "const" declmods) t nil)
            :typemodifiers (delete "const" declmods)
            :parent (car (nth 2 tokenpart))
+            :enum-type (nth 3 tokenpart)
            :destructor-flag (if (car (nth 3 tokenpart) ) t)
            :constructor-flag (if constructor t)
            :function-pointer fcnpointer