Skip to content

Commit fe63b97

Browse files
committed
s [skip ci]
1 parent ffca47d commit fe63b97

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/cppcheck.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,8 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str
10481048
if (mSettings.checkConfiguration) {
10491049
std::string fixedpath = Path::toNativeSeparators(file.spath());
10501050
int checkConfig = 0;
1051+
// TODO: this logic differs from the actual one during analysis
1052+
// TODO: print invalid configurations
10511053
for (const std::string &config : configurations) {
10521054
if (!mSettings.quiet && (!config.empty() && configurations.size() > 1)) {
10531055
mErrorLogger.reportOut("Checking " + fixedpath + ": " + config + "...", Color::FgGreen);
@@ -1198,6 +1200,7 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str
11981200
if (!tokenizer.tokens())
11991201
continue;
12001202

1203+
// TODO: unreachable
12011204
// skip rest of iteration if just checking configuration
12021205
if (mSettings.checkConfiguration)
12031206
continue;

0 commit comments

Comments
 (0)