diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-06-15 11:11:10 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-06-15 11:11:10 (GMT) |
commit | 1cbd7d2faa8d543f521b144a8120c3a1ba2f832f (patch) | |
tree | b47b3252c432a415bf772add061e451f5782d6c7 /src/classdef.cpp | |
parent | 6d2875bda7b5416f2e8c72ec8677b7164de86187 (diff) | |
download | Doxygen-1cbd7d2faa8d543f521b144a8120c3a1ba2f832f.zip Doxygen-1cbd7d2faa8d543f521b144a8120c3a1ba2f832f.tar.gz Doxygen-1cbd7d2faa8d543f521b144a8120c3a1ba2f832f.tar.bz2 |
Release-1.7.0
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index bfd2fa3..625df51 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -213,7 +213,7 @@ void ClassDefImpl::init(const char *defFileName, const char *name, //extractNamespaceName(name,className,ns); //printf("m_name=%s m_className=%s ns=%s\n",m_name.data(),m_className.data(),ns.data()); - if (((QCString)defFileName).right(5)!=".java" && + if (getLanguageFromFileName(defFileName)!=SrcLangExt_Java && guessSection(defFileName)==Entry::SOURCE_SEC) { isLocal=TRUE; @@ -1225,9 +1225,8 @@ void ClassDef::writeIncludeFiles(OutputList &ol) { ol.startParagraph(); ol.startTypewriter(); - bool isIDLorJava = nm.right(4)==".idl" || - nm.right(5)==".pidl" || - nm.right(5)==".java"; + SrcLangExt lang = getLanguageFromFileName(nm); + bool isIDLorJava = lang==SrcLangExt_IDL || lang==SrcLangExt_Java; if (isIDLorJava) { ol.docify("import "); @@ -3059,30 +3058,28 @@ QCString ClassDef::qualifiedNameWithTemplateParameters( static bool hideScopeNames = Config_getBool("HIDE_SCOPE_NAMES"); //printf("qualifiedNameWithTemplateParameters() localName=%s\n",localName().data()); QCString scName; - if (!hideScopeNames) + Definition *d=getOuterScope(); + if (d) { - Definition *d=getOuterScope(); - if (d) + if (d->definitionType()==Definition::TypeClass) { - if (d->definitionType()==Definition::TypeClass) - { - ClassDef *cd=(ClassDef *)d; - scName = cd->qualifiedNameWithTemplateParameters(actualParams); - } - else - { - scName = d->qualifiedName(); - } + ClassDef *cd=(ClassDef *)d; + scName = cd->qualifiedNameWithTemplateParameters(actualParams); + } + else if (!hideScopeNames) + { + scName = d->qualifiedName(); } + } - QCString scopeSeparator; - if (optimizeOutputJava) - scopeSeparator="."; - else - scopeSeparator="::"; + QCString scopeSeparator; + if (optimizeOutputJava) + scopeSeparator="."; + else + scopeSeparator="::"; + + if (!scName.isEmpty()) scName+=scopeSeparator; - if (!scName.isEmpty()) scName+=scopeSeparator; - } scName+=className(); ArgumentList *al=0; bool isSpecialization = localName().find('<')!=-1; |