CppCheck::addFile() accepts paths also now.

This commit is contained in:
Reijo Tomperi 2009-02-22 11:17:17 +00:00
parent 40e37f19e3
commit a64f1d6175
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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);