From 78407b99ed6dd17f687fcbfb0486ecc433302287 Mon Sep 17 00:00:00 2001 From: dergoegge Date: Thu, 21 Mar 2024 11:35:11 +0000 Subject: [clang-tidy] Enable the misc-no-recursion check Co-authored-by: stickies-v Co-authored-by: Gloria Zhao --- doc/developer-notes.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 89c13600eb..cc3f0518e5 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -115,6 +115,8 @@ code. Use `reinterpret_cast` and `const_cast` as appropriate. - Prefer [`list initialization ({})`](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-list) where possible. For example `int x{0};` instead of `int x = 0;` or `int x(0);` + - Recursion is checked by clang-tidy and thus must be made explicit. Use + `NOLINTNEXTLINE(misc-no-recursion)` to suppress the check. For function calls a namespace should be specified explicitly, unless such functions have been declared within it. Otherwise, [argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl), also known as ADL, could be -- cgit v1.2.3