summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-11-15 14:41:06 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-11-15 14:41:06 (GMT)
commitb20ff12b9d8fa90143628233319beec2c20266d7 (patch)
treeaa3814339507e0a58216fe75837a5f055b2405e2 /src/docparser.cpp
parent4fbc34523cbbb9f6532b4113338ef59df193973f (diff)
downloadDoxygen-b20ff12b9d8fa90143628233319beec2c20266d7.zip
Doxygen-b20ff12b9d8fa90143628233319beec2c20266d7.tar.gz
Doxygen-b20ff12b9d8fa90143628233319beec2c20266d7.tar.bz2
Release-1.3-rc1
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 4b15a2b..53f58bc 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -423,7 +423,11 @@ static bool findDocsForMemberOrCompound(const char *commandName,
NamespaceDef *nd=0;
GroupDef *gd=0;
PageInfo *pi=0;
- bool found = getDefs(g_context.latin1(),name.latin1(),args,md,cd,fd,nd,gd,FALSE,0,TRUE);
+ bool found = getDefs(
+ g_context.find('.')==-1?g_context.latin1():"", // `find('.') is a hack to detect files
+ name.latin1(),
+ args.isEmpty()?0:args.latin1(),
+ md,cd,fd,nd,gd,FALSE,0,TRUE);
if (found && md)
{
*pDoc=md->documentation();
@@ -4371,6 +4375,7 @@ DocNode *validatingParseDoc(const char *fileName,int startLine,
// pretty print the result
PrintDocVisitor *v = new PrintDocVisitor;
root->accept(v);
+ delete v;
}
checkUndocumentedParams();
@@ -4413,6 +4418,14 @@ DocNode *validatingParseText(const char *input)
DocText *txt = new DocText;
txt->parse();
+ if (Debug::isFlagSet(Debug::PrintTree))
+ {
+ // pretty print the result
+ PrintDocVisitor *v = new PrintDocVisitor;
+ txt->accept(v);
+ delete v;
+ }
+
delete g_token;
return txt;