parent
88d194214f
commit
af449779f0
|
@ -1225,8 +1225,12 @@ public:
|
|||
void scopeInfo(std::shared_ptr<ScopeInfo2> newScopeInfo);
|
||||
std::shared_ptr<ScopeInfo2> scopeInfo() const;
|
||||
|
||||
void setCpp11init(bool cpp11init) const { mImpl->mCpp11init=cpp11init ? TokenImpl::Cpp11init::CPP11INIT : TokenImpl::Cpp11init::NOINIT; }
|
||||
TokenImpl::Cpp11init isCpp11init() const { return mImpl->mCpp11init; }
|
||||
void setCpp11init(bool cpp11init) const {
|
||||
mImpl->mCpp11init=cpp11init ? TokenImpl::Cpp11init::CPP11INIT : TokenImpl::Cpp11init::NOINIT;
|
||||
}
|
||||
TokenImpl::Cpp11init isCpp11init() const {
|
||||
return mImpl->mCpp11init;
|
||||
}
|
||||
};
|
||||
|
||||
/// @}
|
||||
|
|
|
@ -552,7 +552,7 @@ static bool iscpp11init_impl(const Token * const tok)
|
|||
{
|
||||
const Token *nameToken = tok;
|
||||
while (nameToken && nameToken->str() == "{") {
|
||||
if(nameToken->isCpp11init() != TokenImpl::Cpp11init::UNKNOWN)
|
||||
if (nameToken->isCpp11init() != TokenImpl::Cpp11init::UNKNOWN)
|
||||
return nameToken->isCpp11init() == TokenImpl::Cpp11init::CPP11INIT;
|
||||
nameToken = nameToken->previous();
|
||||
if (nameToken && nameToken->str() == "," && Token::simpleMatch(nameToken->previous(), "} ,"))
|
||||
|
|
Loading…
Reference in New Issue