summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-11 21:16:48 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-14 16:44:22 (GMT)
commitd10ec2e51efcff37b655404dd755e34b5e122cb1 (patch)
treedaddf68c58e356bfe8c61ebde92f014e0fd3f2f4 /src
parent5a1627d41b70115c7558536be1eb95e493ac12cb (diff)
downloadCastXML-d10ec2e51efcff37b655404dd755e34b5e122cb1.zip
CastXML-d10ec2e51efcff37b655404dd755e34b5e122cb1.tar.gz
CastXML-d10ec2e51efcff37b655404dd755e34b5e122cb1.tar.bz2
Output: Clarify name of method adding a decl for a type
Rename the AddDeclDumpNode that is used to add declarations for a type to AddDeclDumpNodeForType for clarity.
Diffstat (limited to 'src')
-rw-r--r--src/Output.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Output.cxx b/src/Output.cxx
index abe6a21..9796315 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -235,7 +235,8 @@ class ASTVisitor: public ASTVisitorBase
/** Allocate a dump node for a Clang declaration. */
DumpId AddDeclDumpNode(clang::Decl const* d, bool complete);
- DumpId AddDeclDumpNode(clang::Decl const* d, bool complete, DumpQual dq);
+ DumpId AddDeclDumpNodeForType(clang::Decl const* d, bool complete,
+ DumpQual dq);
/** Allocate a dump node for a Clang type. */
DumpId AddTypeDumpNode(DumpType dt, bool complete, DumpQual dq = DumpQual());
@@ -588,8 +589,9 @@ ASTVisitor::DumpId ASTVisitor::AddDeclDumpNode(clang::Decl const* d,
}
//----------------------------------------------------------------------------
-ASTVisitor::DumpId ASTVisitor::AddDeclDumpNode(clang::Decl const* d,
- bool complete, DumpQual dq) {
+ASTVisitor::DumpId ASTVisitor::AddDeclDumpNodeForType(clang::Decl const* d,
+ bool complete,
+ DumpQual dq) {
// Get the id for the canonical decl.
DumpId id = this->AddDeclDumpNode(d, complete);
@@ -636,15 +638,15 @@ ASTVisitor::DumpId ASTVisitor::AddTypeDumpNode(DumpType dt, bool complete,
t->getAs<clang::ElaboratedType>()->getNamedType(), c),
complete, dq);
case clang::Type::Enum:
- return this->AddDeclDumpNode(t->getAs<clang::EnumType>()->getDecl(),
- complete, dq);
+ return this->AddDeclDumpNodeForType(
+ t->getAs<clang::EnumType>()->getDecl(), complete, dq);
case clang::Type::Paren:
return this->AddTypeDumpNode(DumpType(
t->getAs<clang::ParenType>()->getInnerType(), c),
complete, dq);
case clang::Type::Record:
- return this->AddDeclDumpNode(t->getAs<clang::RecordType>()->getDecl(),
- complete, dq);
+ return this->AddDeclDumpNodeForType(
+ t->getAs<clang::RecordType>()->getDecl(), complete, dq);
case clang::Type::SubstTemplateTypeParm:
return this->AddTypeDumpNode(DumpType(
t->getAs<clang::SubstTemplateTypeParmType>()->getReplacementType(), c),
@@ -676,7 +678,7 @@ ASTVisitor::DumpId ASTVisitor::AddTypeDumpNode(DumpType dt, bool complete,
}
}
}
- return this->AddDeclDumpNode(tdt->getDecl(), complete, dq);
+ return this->AddDeclDumpNodeForType(tdt->getDecl(), complete, dq);
} break;
default:
break;