Silence clang warnings

This commit is contained in:
Sebastian Meßmer 2022-12-19 22:38:55 +01:00 committed by GitHub
parent dde3d667be
commit 6795d2bc6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,7 @@ public:
}
}
// NOLINTNEXTLINE(misc-no-recursion)
void create_path_if_not_exists(const bf::path& path) {
if (!Exists(path)) {
if (path.has_parent_path()) {
@ -124,7 +125,7 @@ TEST_P(CryNodeTest_RenameNested, Rename) {
if (source_path == "/" || dest_path == "/") {
expect_rename_fails(source_path, dest_path, EBUSY);
} else if (source_path == dest_path) {
} else if (source_path == dest_path) { // NOLINT(bugprone-branch-clone)
expect_rename_succeeds(source_path, dest_path);
} else if (boost::starts_with(source_path, dest_path)) {
expect_rename_fails(source_path, dest_path, ENOTEMPTY);