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

    <tr>
        <th>Summary</th>
        <td>
            AddressSanitizer.html docs unclear about `-fsanitize-address-use-after-scope`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The "Introduction" section in [AddressSanitizer.html](https://clang.llvm.org/docs/AddressSanitizer.html) has a bullet point:

`Use-after-scope (clang flag -fsanitize-address-use-after-scope)`

This suggests that the `-fsanitize-address-use-after-scope` flag is required. From my testing however, it seems to be default behaviour to catch such bugs.  The [google sanitizers wiki](https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterScope) also says it's default, but maybe that doesn't apply to clang?  Maybe it didn't used to be default and this doc was not updated?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU8tu40gM_JrWhbAhU5ZsHXRINhCwhz0l-QBKTUu901J7muwYnq8fSE4m8wgGuejZVWRVkSTihpm5MeW9KR8ySjqG2AjTPGVdsNfmaWQwiP_OGoNNvbowG0QQXh_BzWDK-ztrI4s80uzUfeO4HXXypnwweBxVz2KKO4Otwbb3NA9b71-mbYiDwdaGXgy2HxNgDSMJEHTJe1Y4BzfrwpU_mPztWuXPwhs6KceN9OG8tHtc68DJ0wCbk7yybuhWZZN-BRisTZX_TPo0OgFJw8CiAjqSgi4-VPkn2Kr8VtgJRP6aXGS7hTaGCaYrKIu6eYAxXPiFo8F_wCkI8ySgAToGyydKXqHjkV5cSHH53pP2I0jqR-jSIFuANZfyfghh8AxvTUWBi_viPrJ-cDqmbtuHaXlZYQbbd6DBdoX-Gcaz8N2i7_HVLCAvAYSuAk4NHuSt50VNlxQmunZ8s80GltngQYHOZ39dtSzZmKIF-G895xSss7dDSdj-5gPNFnTJw4YeLiQwB4V0tqRsTdFmtilsXdSUcbM75McKsSjrbGzyimubVxUdyrqwhF1xsMeaKtzXVZfvi8w1mOM-R8TdYVfv6q2l6tQXuwP3THVPvdnnPJHzP-Y1cyKJmyNWZZV56tjLujiIM19g_WkQlz2KzYLZLFmZfe6dqLyzqFPPzYcjv4gUSHPvmSJQF5J-euqyFH3zl8yX-q-3zTmG_7lXg-3a9RL-qup7AAAA___d_V3c">