Cppcheck
|
Cross-platform FileLister. More...
#include <filelister.h>
Static Public Member Functions | |
static std::string | recursiveAddFiles (std::list< std::pair< std::string, std::size_t >> &files, const std::string &path, const PathMatch &ignored) |
Recursively add source files to a map. More... | |
static std::string | recursiveAddFiles (std::list< std::pair< std::string, std::size_t >> &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< std::pair< std::string, std::size_t >> &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 34 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 243 of file filelister.cpp.
References addFiles2(), and endsWith().
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 46 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 238 of file filelister.cpp.
References addFiles().