gribozavr added inline comments.
================ Comment at: clang-tools-extra/clang-tidy/bugprone/PosixReturnCheck.cpp:49 + diag(OperatorLoc, "POSIX functions (except posix_openpt) never return negative values") + << FixItHint::CreateReplacement(OperatorLoc, Twine(">").str()); + return; ---------------- Please add tests for fix-its. ================ Comment at: clang-tools-extra/test/clang-tidy/bugprone-posix-return.cpp:96 + if (posix_fadvise(0, 0, 0, 0) < 0) {} + if (posix_fadvise(0, 0, 0, 0) >= 0) {} else {} + if (posix_fadvise(0, 0, 0, 0) == -1) {} ---------------- Shouldn't there be a warning in the else branch? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D63623/new/ https://reviews.llvm.org/D63623 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits