CppCheck::addFile() accepts paths also now.
This commit is contained in:
parent
40e37f19e3
commit
a64f1d6175
|
@ -57,7 +57,7 @@ void CppCheck::settings(const Settings &settings)
|
|||
|
||||
void CppCheck::addFile(const std::string &path)
|
||||
{
|
||||
_filenames.push_back(path);
|
||||
FileLister::RecursiveAddFiles(_filenames, path.c_str(), true);
|
||||
}
|
||||
|
||||
void CppCheck::addFile(const std::string &path, const std::string &content)
|
||||
|
|
|
@ -74,7 +74,9 @@ public:
|
|||
*
|
||||
* @param path Relative or absolute path to the file to be checked,
|
||||
* e.g. "cppcheck.cpp". Note that only source files (.c, .cc or .cpp)
|
||||
* should be added to the list. Include filese are gathered automatically.
|
||||
* should be added to the list. Include files are gathered automatically.
|
||||
* You can also give path, e.g. "src/" which will be scanned for source
|
||||
* files recursively.
|
||||
*/
|
||||
void addFile(const std::string &path);
|
||||
|
||||
|
|
Loading…
Reference in New Issue