@@ -162,10 +162,10 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
162162 // Execute recursiveAddFiles() to each given file parameter
163163 const PathMatch matcher (ignored, caseSensitive);
164164 for (const std::string &pathname : pathnames)
165- FileLister::recursiveAddFiles (_files , Path::toNativeSeparators (pathname), _settings->library .markupExtensions (), matcher);
165+ FileLister::recursiveAddFiles (mFiles , Path::toNativeSeparators (pathname), _settings->library .markupExtensions (), matcher);
166166 }
167167
168- if (_files .empty () && settings.project .fileSettings .empty ()) {
168+ if (mFiles .empty () && settings.project .fileSettings .empty ()) {
169169 std::cout << " cppcheck: error: could not find or open any of the paths given." << std::endl;
170170 if (!ignored.empty ())
171171 std::cout << " cppcheck: Maybe all paths were ignored?" << std::endl;
@@ -860,7 +860,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
860860
861861 if (!settings.buildDir .empty ()) {
862862 std::list<std::string> fileNames;
863- for (std::map<std::string, std::size_t >::const_iterator i = _files .begin (); i != _files .end (); ++i)
863+ for (std::map<std::string, std::size_t >::const_iterator i = mFiles .begin (); i != mFiles .end (); ++i)
864864 fileNames.push_back (i->first );
865865 AnalyzerInformation::writeFilesTxt (settings.buildDir , fileNames, settings.project .fileSettings );
866866 }
@@ -871,20 +871,20 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
871871 settings.jointSuppressionReport = true ;
872872
873873 std::size_t totalfilesize = 0 ;
874- for (std::map<std::string, std::size_t >::const_iterator i = _files .begin (); i != _files .end (); ++i) {
874+ for (std::map<std::string, std::size_t >::const_iterator i = mFiles .begin (); i != mFiles .end (); ++i) {
875875 totalfilesize += i->second ;
876876 }
877877
878878 std::size_t processedsize = 0 ;
879879 unsigned int c = 0 ;
880880 if (settings.project .fileSettings .empty ()) {
881- for (std::map<std::string, std::size_t >::const_iterator i = _files .begin (); i != _files .end (); ++i) {
881+ for (std::map<std::string, std::size_t >::const_iterator i = mFiles .begin (); i != mFiles .end (); ++i) {
882882 if (!_settings->library .markupFile (i->first )
883883 || !_settings->library .processMarkupAfterCode (i->first )) {
884884 returnValue += cppcheck.check (i->first );
885885 processedsize += i->second ;
886886 if (!settings.quiet )
887- reportStatus (c + 1 , _files .size (), processedsize, totalfilesize);
887+ reportStatus (c + 1 , mFiles .size (), processedsize, totalfilesize);
888888 c++;
889889 }
890890 }
@@ -902,12 +902,12 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
902902
903903 // second loop to parse all markup files which may not work until all
904904 // c/cpp files have been parsed and checked
905- for (std::map<std::string, std::size_t >::const_iterator i = _files .begin (); i != _files .end (); ++i) {
905+ for (std::map<std::string, std::size_t >::const_iterator i = mFiles .begin (); i != mFiles .end (); ++i) {
906906 if (_settings->library .markupFile (i->first ) && _settings->library .processMarkupAfterCode (i->first )) {
907907 returnValue += cppcheck.check (i->first );
908908 processedsize += i->second ;
909909 if (!settings.quiet )
910- reportStatus (c + 1 , _files .size (), processedsize, totalfilesize);
910+ reportStatus (c + 1 , mFiles .size (), processedsize, totalfilesize);
911911 c++;
912912 }
913913 }
@@ -917,17 +917,17 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
917917 std::cout << " No thread support yet implemented for this platform." << std::endl;
918918 } else {
919919 // Multiple processes
920- ThreadExecutor executor (_files , settings, *this );
920+ ThreadExecutor executor (mFiles , settings, *this );
921921 returnValue = executor.check ();
922922 }
923923
924- cppcheck.analyseWholeProgram (_settings->buildDir , _files );
924+ cppcheck.analyseWholeProgram (_settings->buildDir , mFiles );
925925
926926 if (settings.isEnabled (Settings::INFORMATION) || settings.checkConfiguration ) {
927927 const bool enableUnusedFunctionCheck = cppcheck.isUnusedFunctionCheckEnabled ();
928928
929929 if (settings.jointSuppressionReport ) {
930- for (std::map<std::string, std::size_t >::const_iterator i = _files .begin (); i != _files .end (); ++i) {
930+ for (std::map<std::string, std::size_t >::const_iterator i = mFiles .begin (); i != mFiles .end (); ++i) {
931931 const bool err = reportUnmatchedSuppressions (settings.nomsg .getUnmatchedLocalSuppressions (i->first , enableUnusedFunctionCheck));
932932 if (err && returnValue == 0 )
933933 returnValue = settings.exitCode ;
0 commit comments