23 lines · plain
1.. title:: clang-tidy - fuchsia-default-arguments-calls2 3fuchsia-default-arguments-calls4===============================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(); // warning20 foo(0); // no warning21 22See the features disallowed in Fuchsia at https://fuchsia.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en23