Skip to content

Commit 663ce75

Browse files
authored
style(clang-tidy): fix bugprone-exception-escape (#1763)
Two reports were about struct. We are suppressing them for now. Let's revisit when it creates noice on actual functions. Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
1 parent aca1b12 commit 663ce75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/jsonschema/frame.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ auto store(
222222
instances[pointer_from_root] = instance_locations;
223223
}
224224

225+
// Check misunderstood struct to be a function
226+
// NOLINTNEXTLINE(bugprone-exception-escape)
225227
struct InternalEntry {
226228
const sourcemeta::core::SchemaIteratorEntry common;
227229
const std::optional<sourcemeta::core::JSON::String> id;
@@ -257,6 +259,8 @@ auto traverse_origin_instance_locations(
257259
}
258260
}
259261

262+
// Check misunderstood struct to be a function
263+
// NOLINTNEXTLINE(bugprone-exception-escape)
260264
struct CacheSubschema {
261265
const sourcemeta::core::PointerTemplate instance_location{};
262266
const sourcemeta::core::PointerTemplate relative_instance_location{};

0 commit comments

Comments
 (0)