summaryrefslogtreecommitdiffstats
path: root/src/Output.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Output.cxx')
-rw-r--r--src/Output.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Output.cxx b/src/Output.cxx
index 1736397..f8b9c1f 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -1850,8 +1850,10 @@ void ASTVisitor::OutputFunctionDecl(clang::FunctionDecl const* d,
if(d->isOverloadedOperator()) {
this->OutputFunctionHelper(d, dn, "OperatorFunction",
clang::getOperatorSpelling(d->getOverloadedOperator()), flags);
+ } else if (clang::IdentifierInfo const* ii = d->getIdentifier()) {
+ this->OutputFunctionHelper(d, dn, "Function", ii->getName().str(), flags);
} else {
- this->OutputFunctionHelper(d, dn, "Function", d->getName().str(), flags);
+ this->OutputUnimplementedDecl(d, dn);
}
}
@@ -1881,8 +1883,10 @@ void ASTVisitor::OutputCXXMethodDecl(clang::CXXMethodDecl const* d,
if(d->isOverloadedOperator()) {
this->OutputFunctionHelper(d, dn, "OperatorMethod",
clang::getOperatorSpelling(d->getOverloadedOperator()), flags);
+ } else if (clang::IdentifierInfo const* ii = d->getIdentifier()) {
+ this->OutputFunctionHelper(d, dn, "Method", ii->getName().str(), flags);
} else {
- this->OutputFunctionHelper(d, dn, "Method", d->getName().str(), flags);
+ this->OutputUnimplementedDecl(d, dn);
}
}