]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic/bovine/c: Parse C++11 strongly typed enum
authorRamkumar Ramachandra <artagnon@gmail.com>
Wed, 21 Jan 2015 22:50:26 +0000 (17:50 -0500)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 17:28:21 +0000 (19:28 +0200)
* semantic/bovine/c.by (ENUM, opt-enum-type): Add opt-enum-type argument
  to ENUM, that matches either a colon + typeformbase or nothing.

* semantic/bovine/c.el (semantic-c-reconstitute token): Add :enum-type.

test/manual/cedet/cedet/semantic/tests/test.cpp

index 21746b7ed194d742099f27f88548c10fd63e30e0..39967031fefab774e5778807a79c25b20dd85b96 100644 (file)
@@ -22,6 +22,11 @@ int simple1(int a) {
 
 }
 
+enum typedenum : unsigned {
+  FIRST = 0UL,
+  SECOND = ~0UL
+};
+
 struct foo1 {
   int test;
 };