merge CppParser C++11 and other improvements from appinf

This commit is contained in:
Günter Obiltschnig
2019-11-16 19:01:02 +01:00
parent 03f22ded65
commit cc664cba89
8 changed files with 97 additions and 8 deletions

View File

@@ -77,6 +77,9 @@ public:
void typeDefs(SymbolTable& table) const;
/// Fills the symbol table with all type definitions.
void typeAliases(SymbolTable& table) const;
/// Fills the symbol table with all type alias (using) definitions.
void enums(SymbolTable& table) const;
/// Fills the symbol table with all enums.

View File

@@ -46,6 +46,7 @@ public:
SYM_PARAMETER, /// A function parameter
SYM_STRUCT, /// A struct or class
SYM_TYPEDEF, /// A typedef
SYM_TYPEALIAS, /// A type alias (using)
SYM_BUILTIN, /// A built-in type
SYM_VARIABLE /// A (member) variable
};

View File

@@ -43,6 +43,23 @@ public:
};
class CppParser_API TypeAlias: public Decl
/// This class represents a type alias definition (using).
{
public:
TypeAlias(const std::string& decl, NameSpace* pNameSpace);
/// Creates the TypeAlias.
~TypeAlias();
/// Destroys the TypeAlias.
Symbol::Kind kind() const;
std::string baseType() const;
/// Returns the underlying base type.
};
} } // namespace Poco::CppParser