forked from qt-creator/qt-creator
Data added: - return type spelling for functions - parent spelling - access specifier for class fields and methods - storage class New highlighting types are added, therefore types are now categorized by class, struct, etc. Change-Id: I1739b94a6f777045fde655060d8b9a12b6e0889b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
45 lines
655 B
C++
45 lines
655 B
C++
|
|
|
|
|
|
namespace Namespace
|
|
{
|
|
class SuperClass;
|
|
/**
|
|
* A brief comment
|
|
*/
|
|
class SuperClass
|
|
{
|
|
SuperClass() = default;
|
|
SuperClass(int x) noexcept;
|
|
int Method();
|
|
virtual int VirtualMethod(int z);
|
|
virtual int AbstractVirtualMethod(int z) = 0;
|
|
bool ConstMethod() const;
|
|
static void StaticMethod();
|
|
operator int() const;
|
|
int operator ++() const;
|
|
~SuperClass();
|
|
|
|
private:
|
|
int y;
|
|
};
|
|
}
|
|
|
|
struct Struct final
|
|
{
|
|
virtual void FinalVirtualMethod() final;
|
|
};
|
|
|
|
union Union
|
|
{
|
|
|
|
};
|
|
|
|
struct NonFinalStruct
|
|
{
|
|
virtual void FinalVirtualMethod() final;
|
|
void function();
|
|
protected:
|
|
void ProtectedMethodAccessSpecifier();
|
|
};
|