fix(devel): add missing 1.11 releases commits (#3976)

This commit is contained in:
Aleksandar Fabijanic
2023-03-18 01:29:14 -05:00
committed by GitHub
parent 3852a6b6c2
commit 6207b8fb56
4 changed files with 76 additions and 0 deletions

View File

@@ -119,6 +119,9 @@ public:
bool isDeleted() const;
/// Returns true iff the method has been deleted.
bool isStatic() const;
/// Returns true iff the method is static.
int countParameters() const;
/// Returns the number of parameters.
@@ -178,6 +181,12 @@ inline bool Function::isDeleted() const
}
inline bool Function::isStatic() const
{
return (flags() & FN_STATIC) != 0;
}
} } // namespace Poco::CppParser

View File

@@ -57,6 +57,11 @@ public:
///
/// Example: a type const std::string& -> std::string, a type const std::string* returns std::string
bool isConst() const;
/// Returns true iff the variable is const.
bool isStatic() const;
/// Returns true iff the variable is static.
private:
int _flags;
@@ -80,6 +85,18 @@ inline bool Variable::isPointer() const
}
inline bool Variable::isConst() const
{
return (flags() & VAR_CONST) != 0;
}
inline bool Variable::isStatic() const
{
return (flags() & VAR_STATIC) != 0;
}
inline const std::string& Variable::declType() const
{
return _type;