Debian Codegraph @

clang-tools-extra/docs/clang-tidy/checks/fuchsia/default-arguments-calls.rst

raw
1 .. title:: clang-tidy - fuchsia-default-arguments-calls
2
3 fuchsia-default-arguments-calls
4 ===============================
5
6 Warns if a function or method is called with default arguments.
7
8 For example, given the declaration:
9
10 .. code-block:: c++
11
12 int foo(int value = 5) { return value; }
13
14 A function call expression that uses a default argument will be diagnosed.
15 Calling it without defaults will not cause a warning:
16
17 .. code-block:: c++
18
19 foo(); // warning
20 foo(0); // no warning
21
22 See the features disallowed in Fuchsia at https://fuchsia.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en