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