Skip to content

Commit

Permalink
path.cpp: suppress knownConditionTrueFalse false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 8, 2024
1 parent 0f90070 commit 44b7e3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ Standards::Language Path::identify(const std::string &path, bool *header)
return Standards::Language::CPP;
if (c_src_exts.find(ext) != c_src_exts.end())
return Standards::Language::C;
// cppcheck-suppress knownConditionTrueFalse - TODO: FP
if (!caseInsensitiveFilesystem())
strTolower(ext);
if (ext == ".h") {
Expand Down

0 comments on commit 44b7e3c

Please sign in to comment.