<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55060>55060</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            fuchsia-default-arguments-calls warns on STL containers' constructors
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          junaire
      </td>
    </tr>
</table>

<pre>
    I'm not sure if this is by design, but I think it really confuses me.
```c++
#include <vector>

int main()
{
    std::vector<int> vec {1,2,3,4};
}
```
Runs:
```c++
clang-tidy --checks='fuchsia-default-arguments-calls' fuchsia.cc
```
Warns:
```c++
/tmp/fuchsia.cc:5:28: warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls]
    std::vector<int> vec = {1,2,3,4};
                           ^
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:626:7: note: default parameter was declared here
             const allocator_type& __a = allocator_type())

```
Please check out https://godbolt.org/z/577Ga1Wbc
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNVE1zmzAQ_TXisgODhYFw4ODEcSczPXTazvTokcQalMjg0UcS99d3ReykTdOkjLRIrKR9-_YJOXXH9obxeg_j5MEFi6B34AftgJo8QodO9yPjVyCDh5voGu9Ae7AojDmCmsZdcOhgjxnL1yxfsSp_aorxy9ievvJCj8qEDoEVV_eo_GRZcX1yzlaPHvZCU7ALxpuTpz7tB3qc71ixonbefkVb6BCgOdDKBcHk1AvqS1avWXEOTuM_sT1Nv4bRxRPfwa2MGPvU6-4IaaoGVHe0Y02M7YIanBZphzsRjE-F7cMeR-9SRcQ4WgGnJZlSb0b_IeyH4Rnf-P2B7G9nFauSOpFUrOCBztBjH4cxLA1BUNxReT2NVCzhYa6OgBNOOOOM9e20o03TA3bAysuPMirX_1uKYv1uOeDfDyuvnxMPzpI1WpLtKW--ebyottUypTTDY9qPgT4tcjJZ9rc5qY1GZ0JPi6X2VJ2N82b7BD4bKI-KV2TrSCTdBIzvM2MHYcUePVpimzhDkoQlxga0-EY-dCEcsUy0KkGHb_3xQCAq2G7FTMxrz6z1Z7m_pZMvBoVDmMUHE93CwfvDLBy-idRMnZyMzybb0-wn9bKuP4nFD6mSri26pmhE4rU32H5Q4VlNDkg4375_jol4uo1oZy3PadkQ-XJJsKZ9BUL7IchMTftYMnN_fqUHO90Sy7EgzgWMzJdlXuXJ0OY1qt1CloXsGi4wb3KZ52VTctlwiRddYoRE41qSJuP85SLShLSY6JbnnOdLvsx5WfMy47tOVotGLJSsi0VdsmWO9D8xWQQS6UlsO2OSoXfkNNp59-IULv7pEOd4dL4IfphsextGoS0mM_x2xv4LewuL8g">