From a25699b17e347698d469ecb74673fe83c50bc876 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Sat, 17 Jan 2015 17:43:57 -0500 Subject: [PATCH] semantic/bovine/c: Parse C++ override/final correctly override and final are a perfectly good opt-post-fcn-modifiers in C++. Parse them correctly. (Tiny change) * semantic/bovine/c.by (post-fcn-modifiers): Add tokens OVERRIDE and FINAL. * semantic/bovine/c.el (semantic-c-reconstitute-token): Add :override-flag and :final-flag. --- test/manual/cedet/cedet/semantic/tests/test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/manual/cedet/cedet/semantic/tests/test.cpp b/test/manual/cedet/cedet/semantic/tests/test.cpp index 04b7df7c0a6..21746b7ed19 100644 --- a/test/manual/cedet/cedet/semantic/tests/test.cpp +++ b/test/manual/cedet/cedet/semantic/tests/test.cpp @@ -161,6 +161,18 @@ void *class3::method5_for_class3( int a, int b) const { } +void *class3::method6_for_class3( int a, int b) override +{ + int q = a; + return "Moose"; +} + +void *class3::method7_for_class3( int a, int b) final +{ + int q = a; + return "Moose"; +} + /* * Namespace parsing tests */ -- 2.39.5