[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/ctags
From: Roberto Raggi <roberto () kdevelop ! org>
Date: 2003-10-27 17:50:40
[Download RAW message or body]
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 <kprocess.h>
#include <qregexp.h>
+#include <ktempfile.h>
#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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic