summaryrefslogtreecommitdiffstats
path: root/src/conceptdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-01 11:51:57 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-01 11:51:57 (GMT)
commit9c7f8b12d0af44b8e4cee42e68fd5553563231a1 (patch)
tree1ae29cf4e8531122399fd397cbe658d0bdbfc1c8 /src/conceptdef.cpp
parent44d55811919cca36ba0709d805fd5b1478fdf4ea (diff)
downloadDoxygen-9c7f8b12d0af44b8e4cee42e68fd5553563231a1.zip
Doxygen-9c7f8b12d0af44b8e4cee42e68fd5553563231a1.tar.gz
Doxygen-9c7f8b12d0af44b8e4cee42e68fd5553563231a1.tar.bz2
Cleanup util.h by moving some functions to other files
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;
+}