Recursive file listing, .cxx added to file list

This commit is contained in:
Reijo Tomperi 2008-11-27 19:17:15 +00:00
parent 101e7b96fc
commit df452a3b0f
3 changed files with 6 additions and 4 deletions

View File

@ -38,7 +38,8 @@ bool FileLister::AcceptFile( const std::string &filename )
std::string extension = filename.substr( dotLocation );
if( extension == ".cpp" ||
if( extension == ".cpp" ||
extension == ".cxx" ||
extension == ".cc" ||
extension == ".c" )
{
@ -126,7 +127,8 @@ void FileLister::RecursiveAddFiles( std::vector<std::string> &filenames, const s
return;
}
AddFiles( filenames, path, "*.cpp" );
AddFiles( filenames, path, "*.cpp" );
AddFiles( filenames, path, "*.cxx" );
AddFiles( filenames, path, "*.cc" );
AddFiles( filenames, path, "*.c" );

View File

@ -130,7 +130,7 @@ std::string CppCheck::parseFromArgs( int argc, char* argv[] )
"\n"
" --style Check coding style.\n"
" --errorsonly Only print something when there is an error\n"
" --recursive Recursively check all *.cpp, *.cc and *.c files\n";
" --recursive Recursively check all *.cpp, *.cxx, *.cc and *.c files\n";
return oss.str();
}

View File

@ -140,7 +140,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
<varlistentry>
<term><option>--recursive</option></term>
<listitem>
<para>Recursively check all *.cpp, *.cc and *.c files.</para>
<para>Recursively check all *.cpp, *.cxx, *.cc and *.c files.</para>
</listitem>
</varlistentry>
<varlistentry>