summaryrefslogtreecommitdiffstats
path: root/src/conceptdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/conceptdef.cpp')
-rw-r--r--src/conceptdef.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/conceptdef.cpp b/src/conceptdef.cpp
index b9dd085..3047f4a 100644
--- a/src/conceptdef.cpp
+++ b/src/conceptdef.cpp
@@ -23,6 +23,8 @@
#include "searchindex.h"
#include "message.h"
#include "parserintf.h"
+#include "layout.h"
+#include "namespacedef.h"
//------------------------------------------------------------------------------------
@@ -729,5 +731,25 @@ ConceptDefMutable *toConceptDefMutable(const Definition *d)
}
}
+// -- helpers
+
+ConceptDef *getConcept(const QCString &n)
+{
+ if (n.isEmpty()) return 0;
+ return Doxygen::conceptLinkedMap->find(n);
+}
+
+ConceptDef *getResolvedConcept(const Definition *d,const QCString &name)
+{
+ ConceptDef *cd=0;
+ while (d && d!=Doxygen::globalScope)
+ {
+ cd = getConcept(d->name()+"::"+name);
+ if (cd) return cd;
+ d = d->getOuterScope();
+ }
+ cd = getConcept(name);
+ return cd;
+}