Re: Semantic does not correctly show PRIVATE/PROTECTED methods to a class of whom those private/protected methods belong
Eric Ludlam <[email protected]> Wed, 26 Nov 2014 11:58:20 -0500
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Only showing those 5 methods is the correct behavior because you can't
call the protected or private methods from Main.
If I go into MyClass.cpp, myfunc(void) and type in:
this.<complete>
then I get all the private and protected methods.
Eric
On 11/26/2014 06:44 AM, Dixon Ryan (ETAS/ESW6) wrote:
> I think the title explains the problem.
>
> Here are the source files which prove this bug (not showing
> PRIVATE/PROTECTED when semantic should):
>
> ===MyClass.hpp===
>
> #include <string>
>
> class MyClass {
>
> private:
>
> int data;
>
> public:
>
> void myFunc( void ) const;
>
> void myOtherFunc( void ) const;
>
> int getData( void ) const;
>
> protected:
>
> void onlySubclassAndPar( void ) const;
>
> void anotherFunction( std::string s );
>
> public:
>
> std::string secondMyFunc( std::string s ) const;
>
> void oneMoreForGoodMeasure( void ) const;
>
> private:
>
> void somePrivateMethod( void ) const;
>
> void someOtherPrivateMethod( void );
>
> };
>
> ==END MyClass.hpp===
>
> ==MyClass.cpp===
>
> #include "MyClass.hpp"
>
> void MyClass::myFunc( void ) const {
>
> ;
>
> }
>
> void MyClass::myOtherFunc( void ) const {
>
> ;
>
> }
>
> int MyClass::getData( void ) const {
>
> return 0;
>
> }
>
> void MyClass::onlySubclassAndPar( void ) const {
>
> ;
>
> }
>
> void MyClass::anotherFunction( std::string s ) {
>
> return "";
>
> }
>
> std::string MyClass::secondMyFunc( std::string s ) const {
>
> return s;
>
> }
>
> void MyClass::oneMoreForGoodMeasure( void ) const {
>
> ;
>
> }
>
> void MyClass::somePrivateMethod( void ) const {
>
> ;
>
> }
>
> void MyClass::someOtherPrivateMethod( void ) {
>
> ;
>
> }
>
> ===END MyClass.cpp===
>
> ===main.cpp===
>
> #include "MyClass.hpp"
>
> int main ( void ) {
>
> MyClass mc;
>
> mc. //only 5 PUBLIC methods
>
> return 0;
>
> }
>
> ===END main.cpp===
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> cedet-semantic mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk