1 parent a3c8020 commit 9781751Copy full SHA for 9781751
1 file changed
lib/clangimport.cpp
@@ -422,14 +422,10 @@ std::string clangimport::AstNode::getSpelling() const
422
if (nodeType == FunctionDecl || nodeType == CXXConstructorDecl || nodeType == CXXMethodDecl) {
423
while (typeIndex >= 0 && mExtTokens[typeIndex][0] != '\'')
424
typeIndex--;
425
- if (typeIndex <= 0)
426
- return "";
427
}
428
if (nodeType == DeclRefExpr) {
429
while (typeIndex > 0 && std::isalpha(mExtTokens[typeIndex][0]))
430
431
432
433
434
if (typeIndex <= 0)
435
return "";
0 commit comments