astyle formatting
[ci skip]
This commit is contained in:
parent
4cef2e94e7
commit
d5a478d5c5
@ -959,8 +959,7 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool isNestedIn(const Scope * outer) const
|
||||
{
|
||||
bool isNestedIn(const Scope * outer) const {
|
||||
if (!outer)
|
||||
return false;
|
||||
if (outer == this)
|
||||
|
@ -2956,11 +2956,9 @@ static const Variable * getLifetimeVariable(const Token * tok, ErrorPath& errorP
|
||||
return var;
|
||||
}
|
||||
|
||||
struct Lambda
|
||||
{
|
||||
struct Lambda {
|
||||
explicit Lambda(const Token * tok)
|
||||
: capture(nullptr), arguments(nullptr), returnTok(nullptr), bodyTok(nullptr)
|
||||
{
|
||||
: capture(nullptr), arguments(nullptr), returnTok(nullptr), bodyTok(nullptr) {
|
||||
if (!Token::simpleMatch(tok, "[") || !tok->link())
|
||||
return;
|
||||
capture = tok;
|
||||
@ -2982,8 +2980,7 @@ struct Lambda
|
||||
const Token * returnTok;
|
||||
const Token * bodyTok;
|
||||
|
||||
bool isLambda() const
|
||||
{
|
||||
bool isLambda() const {
|
||||
return capture && bodyTok;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user