MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / next

Method next

cli/threadexecutor.cpp:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 bool next(const FileWithDetails *&file, const FileSettings *&fs, std::size_t &fileSize) {
102 std::lock_guard<std::mutex> l(mFileSync);
103 if (mItNextFile != mFiles.end()) {
104 file = &(*mItNextFile);
105 fs = nullptr;
106 fileSize = mItNextFile->size();
107 ++mItNextFile;
108 return true;
109 }
110 if (mItNextFileSettings != mFileSettings.end()) {
111 file = nullptr;
112 fs = &(*mItNextFileSettings);
113 fileSize = 0;
114 ++mItNextFileSettings;
115 return true;
116 }
117
118 return false;
119 }
120
121 unsigned int check(const FileWithDetails *file, const FileSettings *fs) {
122 CppCheck fileChecker(mSettings, mSuppressions, mLogForwarder, mTimerResults, false, mExecuteCommand);

Callers 15

findInFilesClickedMethod · 0.80
isUnchangedFunction · 0.80
checkRecursiveMethod · 0.80
fwdanalysis.cppFile · 0.80
arithmeticMethod · 0.80
createMethod · 0.80
arrayIndexMethod · 0.80
pointerArithmeticMethod · 0.80
bufferOverflowMethod · 0.80
arrayIndexThenCheckMethod · 0.80

Calls 2

endMethod · 0.45
sizeMethod · 0.45