Semantic does not correctly show PRIVATE/PROTECTED methods to a class of whom those private/protected methods belong
"Dixon Ryan (ETAS/ESW6)" <[email protected]> Wed, 26 Nov 2014 11:44:23 +0000
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
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