Skip to content

Commit

Permalink
path.cpp: mitigated readability-simplify-boolean-expr false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed May 7, 2024
1 parent 9b4cd7b commit ec75f29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,10 @@ static bool hasEmacsCppMarker(const char* path)
findAndReplace(marker, "mode:", "");
findAndReplace(marker, "Mode:", "");
marker = trim(marker);
if (marker == "C++" || marker == "c++")
if (marker == "C++" || marker == "c++") {
// NOLINTNEXTLINE(readability-simplify-boolean-expr) - TODO: FP
return true; // C++ marker found
}

//if (marker == "C" || marker == "c")
// return false;
Expand Down

0 comments on commit ec75f29

Please sign in to comment.