From kde-commits Mon Oct 27 17:50:40 2003 From: Roberto Raggi Date: Mon, 27 Oct 2003 17:50:40 +0000 To: kde-commits Subject: kdevelop/parts/ctags X-MARC-Message: https://marc.info/?l=kde-commits&m=106727709003244 CVS commit by raggi: bugfix: now ctags works for projects with a lot of files too M +17 -14 ctagspart.cpp 1.24 --- kdevelop/parts/ctags/ctagspart.cpp #1.23:1.24 @@ -23,4 +23,5 @@ #include #include +#include #include "kdevcore.h" @@ -299,14 +300,16 @@ bool CTagsPart::createTagsFile() proc.setWorkingDirectory( project()->projectDirectory() ); + QStringList l = project()->allFiles(); + + KTempFile ifile; + QTextStream& is = *ifile.textStream(); + is << l.join( "\n" ); + is << "\n"; + ifile.close(); + proc << "ctags"; proc << "-n"; proc << "--c++-types=+px"; - - QStringList l = project()->allFiles(); - QStringList::ConstIterator it; - for (it = l.begin(); it != l.end(); ++it) - { - proc << *it; - } + proc << "-L" << ifile.name(); QApplication::setOverrideCursor(Qt::waitCursor);