Recursive file listing, .cxx added to file list
This commit is contained in:
parent
101e7b96fc
commit
df452a3b0f
|
@ -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" );
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue