Skip to content

Commit ec75f29

Browse files
committed
path.cpp: mitigated readability-simplify-boolean-expr false positive
1 parent 9b4cd7b commit ec75f29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/path.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,10 @@ static bool hasEmacsCppMarker(const char* path)
316316
findAndReplace(marker, "mode:", "");
317317
findAndReplace(marker, "Mode:", "");
318318
marker = trim(marker);
319-
if (marker == "C++" || marker == "c++")
319+
if (marker == "C++" || marker == "c++") {
320+
// NOLINTNEXTLINE(readability-simplify-boolean-expr) - TODO: FP
320321
return true; // C++ marker found
322+
}
321323

322324
//if (marker == "C" || marker == "c")
323325
// return false;

0 commit comments

Comments
 (0)