aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2024-03-21 11:35:11 +0000
committerdergoegge <n.goeggi@gmail.com>2024-04-07 14:04:45 +0100
commit78407b99ed6dd17f687fcbfb0486ecc433302287 (patch)
tree61eca950e0d5b18ee4a8616ef913cf9ba3613746 /doc
parentf0794cbd405636a7f528a60f2873050b865cf7e8 (diff)
downloadbitcoin-78407b99ed6dd17f687fcbfb0486ecc433302287.tar.xz
[clang-tidy] Enable the misc-no-recursion check
Co-authored-by: stickies-v <stickies-v@protonmail.com> Co-authored-by: Gloria Zhao <gloriajzhao@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/developer-notes.md2
1 files changed, 2 insertions, 0 deletions
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