summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 9ea2193..14d34c0 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -1293,11 +1293,13 @@ static void addClassToContext(EntryNav *rootNav)
{
tagName = rootNav->tagInfo()->tagName;
refFileName = rootNav->tagInfo()->fileName;
- }
- int i;
- if ((i=fullName.find("::"))!=-1)
- {
- buildScopeFromQualifiedName(fullName,fullName.contains("::"),root->lang);
+ int i;
+ if ((i=fullName.find("::"))!=-1)
+ // symbols imported via tag files may come without the parent scope,
+ // so we artificially create it here
+ {
+ buildScopeFromQualifiedName(fullName,fullName.contains("::"),root->lang);
+ }
}
cd=new ClassDef(root->fileName,root->startLine,root->startColumn,
fullName,sec,tagName,refFileName,TRUE,root->spec&Entry::Enum);