Skip to content

Commit 2cee634

Browse files
committed
assert [skip ci]
1 parent 63e70d8 commit 2cee634

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/token.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2726,5 +2726,8 @@ const Token* findLambdaEndScope(const Token* tok) {
27262726
const std::string& Token::funcname(const Library& library) const {
27272727
if (!mImpl->mFuncName)
27282728
mImpl->mFuncName = new std::string(library.getFunctionName(this));
2729+
const std::string fname = library.getFunctionName(this);
2730+
std::cout << this << " astParent: " << astParent() << " previous: " << previous() << " " << stringify(stringifyOptions::forDebug()) << " " << fname << std::endl;
2731+
assert(*mImpl->mFuncName == fname);
27292732
return *mImpl->mFuncName;
27302733
}

0 commit comments

Comments
 (0)