Skip to content

Commit c6784c6

Browse files
committed
mpgen: disable clang-tidy misc-no-recursion error
src/mp/gen.cpp:82:13: error: function 'ForEachMethod' is within a recursive call chain [misc-no-recursion,-warnings-as-errors] 82 | static void ForEachMethod(const capnp::InterfaceSchema& interface, const std::function<void(const capnp::InterfaceSchema& interface, const capnp::InterfaceSchema::Method)>& callback)
1 parent c5498aa commit c6784c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mp/gen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static bool GetAnnotationInt32(const Reader& reader, uint64_t id, int32_t* resul
7676
return false;
7777
}
7878

79-
static void ForEachMethod(const capnp::InterfaceSchema& interface, const std::function<void(const capnp::InterfaceSchema& interface, const capnp::InterfaceSchema::Method)>& callback)
79+
static void ForEachMethod(const capnp::InterfaceSchema& interface, const std::function<void(const capnp::InterfaceSchema& interface, const capnp::InterfaceSchema::Method)>& callback) // NOLINT(misc-no-recursion)
8080
{
8181
for (const auto super : interface.getSuperclasses()) {
8282
ForEachMethod(super, callback);

0 commit comments

Comments
 (0)