Fixed #2181 (How can I select the extension of the files to check?)

This commit is contained in:
Daniel Marjamäki 2010-11-09 19:20:31 +01:00
parent 81cac166d6
commit 14bf9fbbdb
2 changed files with 2 additions and 6 deletions

View File

@ -68,11 +68,7 @@ bool FileLister::acceptFile(const std::string &filename)
extension == ".c" || extension == ".c" ||
extension == ".c++" || extension == ".c++" ||
extension == ".tpp" || extension == ".tpp" ||
extension == ".txx" || extension == ".txx")
extension == ".m" || // Objective C
extension == ".mm" || // Objective C++
extension == ".java" || // Java source file
extension == ".cs") // C# source file
{ {
return true; return true;
} }

View File

@ -53,7 +53,7 @@ void FileListerUnix::recursiveAddFiles(std::vector<std::string> &filenames, cons
if (filename[filename.length()-1] != '/') if (filename[filename.length()-1] != '/')
{ {
// File // File
if (FileLister::acceptFile(filename)) if (sameFileName(path,filename) || FileLister::acceptFile(filename))
filenames.push_back(filename); filenames.push_back(filename);
} }
else else