summaryrefslogtreecommitdiffstats
path: root/addon/doxyparse
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-04-06 17:19:07 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-04-06 17:19:07 (GMT)
commit4bc2355373979726c7ed4e8351639123daf808cb (patch)
tree920279c4bfbff5531fd2e1b4eca1eb142a7b7fb6 /addon/doxyparse
parentb4b47b3919650d7350acc9fe59becaee4a3d5ff5 (diff)
downloadDoxygen-4bc2355373979726c7ed4e8351639123daf808cb.zip
Doxygen-4bc2355373979726c7ed4e8351639123daf808cb.tar.gz
Doxygen-4bc2355373979726c7ed4e8351639123daf808cb.tar.bz2
Replaced FileNameDict/FileNameList by FileNameLinkedMap
Diffstat (limited to 'addon/doxyparse')
-rw-r--r--addon/doxyparse/doxyparse.cpp33
1 files changed, 10 insertions, 23 deletions
diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp
index d0b43d5..2fcf9ac 100644
--- a/addon/doxyparse/doxyparse.cpp
+++ b/addon/doxyparse/doxyparse.cpp
@@ -291,7 +291,7 @@ void functionInformation(MemberDef* md) {
if (!argList.empty())
{
temp = argumentData(argList.front());
-// TODO: This is a workaround; better not include "void" in argList, in the first place.
+// TODO: This is a workaround; better not include "void" in argList, in the first place.
if (temp!="void")
{
printNumberOfArguments(argList.size());
@@ -385,9 +385,8 @@ static bool checkLanguage(std::string& filename, std::string extension) {
/* Detects the programming language of the project. Actually, we only care
* about whether it is a C project or not. */
-static void detectProgrammingLanguage(FileNameListIterator& fnli) {
- FileName* fn;
- for (fnli.toFirst(); (fn=fnli.current()); ++fnli) {
+static void detectProgrammingLanguage(FileNameLinkedMap &fnli) {
+ for (const auto &fn : fnli) {
std::string filename = fn->fileName();
if (
checkLanguage(filename, ".cc") ||
@@ -404,17 +403,11 @@ static void detectProgrammingLanguage(FileNameListIterator& fnli) {
}
static void listSymbols() {
- // iterate over the input files
- FileNameListIterator fnli(*Doxygen::inputNameList);
- FileName *fn;
-
- detectProgrammingLanguage(fnli);
+ detectProgrammingLanguage(*Doxygen::inputNameLinkedMap);
- // for each file
- for (fnli.toFirst(); (fn=fnli.current()); ++fnli) {
- FileNameIterator fni(*fn);
- FileDef *fd;
- for (; (fd=fni.current()); ++fni) {
+ // iterate over the input files
+ for (const auto &fn : *Doxygen::inputNameLinkedMap) {
+ for (const auto &fd : *fn) {
printFile(fd->absFilePath().data());
MemberList *ml = fd->getMemberList(MemberListType_allMembersList);
if (ml && ml->count() > 0) {
@@ -529,16 +522,10 @@ int main(int argc,char **argv) {
parseInput();
// iterate over the input files
- FileNameListIterator fnli(*Doxygen::inputNameList);
- FileName *fn;
- // for each file with a certain name
- for (fnli.toFirst();(fn=fnli.current());++fnli) {
- FileNameIterator fni(*fn);
- FileDef *fd;
- // for each file definition
- for (;(fd=fni.current());++fni) {
+ for (const auto &fn : *Doxygen::inputNameLinkedMap) {
+ for (const auto &fd : *fn) {
// get the references (linked and unlinked) found in this file
- findXRefSymbols(fd);
+ findXRefSymbols(fd.get());
}
}