Fixed #2181 (How can I select the extension of the files to check?)
This commit is contained in:
parent
81cac166d6
commit
14bf9fbbdb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue