Cppcheck
|
Cross-platform FileLister. More...
#include <filelister.h>
Static Public Member Functions | |
static std::string | recursiveAddFiles (std::list< FileWithDetails > &files, const std::string &path, const PathMatch &ignored) |
Recursively add source files to a map. More... | |
static std::string | recursiveAddFiles (std::list< FileWithDetails > &files, const std::string &path, const std::set< std::string > &extra, const PathMatch &ignored) |
Recursively add source files to a map. More... | |
static std::string | addFiles (std::list< FileWithDetails > &files, const std::string &path, const std::set< std::string > &extra, bool recursive, const PathMatch &ignored) |
(Recursively) add source files to a map. More... | |
Cross-platform FileLister.
Definition at line 35 of file filelister.h.
|
static |
(Recursively) add source files to a map.
Add source files from given directory and all subdirectries to the given map. Only files with accepted extensions (*.c;*.cpp;*.cxx;*.c++;*.cc;*.txx) are added.
files | output list that associates the size of each file with its name |
path | root path |
extra | Extra file extensions |
recursive | Enable recursion |
ignored | ignored paths |
Definition at line 246 of file filelister.cpp.
References addFiles2(), endsWith(), and FileWithDetails::path().
Referenced by recursiveAddFiles().
|
inlinestatic |
Recursively add source files to a map.
Add source files from given directory and all subdirectries to the given map. Only files with accepted extensions (*.c;*.cpp;*.cxx;*.c++;*.cc;*.txx) are added.
files | output list that associates the size of each file with its name |
path | root path |
ignored | ignored paths |
Definition at line 47 of file filelister.h.
Referenced by CmdLineParser::fillSettingsFromArgs().
|
static |
Recursively add source files to a map.
Add source files from given directory and all subdirectries to the given map. Only files with accepted extensions (*.c;*.cpp;*.cxx;*.c++;*.cc;*.txx) are added.
files | output list that associates the size of each file with its name |
path | root path |
extra | Extra file extensions |
ignored | ignored paths |
Definition at line 270 of file filelister.cpp.
References addFiles().