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

Method readActiveCheckers

cli/cppcheckexecutor.cpp:169–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 }
168
169 void readActiveCheckers() {
170 if (mCheckersFile.empty())
171 return;
172
173 std::ifstream fin(mCheckersFile);
174 if (fin.is_open())
175 {
176 std::set<std::string> activeCheckers;
177 std::string line;
178 while (std::getline(fin, line))
179 {
180 activeCheckers.emplace(std::move(line));
181 }
182 mActiveCheckers = std::move(activeCheckers);
183 }
184 }
185
186 private:
187 /**

Callers 1

check_internalMethod · 0.80

Calls 2

getlineFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected