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 23, 2024
1 parent aaab7aa commit a9ad6b6
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 @@ -284,8 +284,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 a9ad6b6

Please sign in to comment.