Skip to content

Commit a9ad6b6

Browse files
committed
path.cpp: mitigated readability-simplify-boolean-expr false positive
1 parent aaab7aa commit a9ad6b6

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
@@ -284,8 +284,10 @@ static bool hasEmacsCppMarker(const char* path)
284284
findAndReplace(marker, "mode:", "");
285285
findAndReplace(marker, "Mode:", "");
286286
marker = trim(marker);
287-
if (marker == "C++" || marker == "c++")
287+
if (marker == "C++" || marker == "c++") {
288+
// NOLINTNEXTLINE(readability-simplify-boolean-expr) - TODO: FP
288289
return true; // C++ marker found
290+
}
289291

290292
//if (marker == "C" || marker == "c")
291293
// return false;

0 commit comments

Comments
 (0)