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

    <tr>
        <th>Summary</th>
        <td>
            clang should accept `[[gnu::no_sanitize("...")]]` spelling
        </td>
    </tr>

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

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

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

<pre>
    GCC (AFAICT since version 9.1) accepts the `no_sanitize` attribute in both `__attribute__((no_sanitize("...")))` and `[[gnu::no_sanitize("...")]]` spellings.  Clang doesn't accept `[[gnu::no_sanitize(...)]]` but only `[[clang::no_sanitize("...")]]` so it's not possible to use modern C++ attribute syntax in source code compatible with both compilers without `#ifdef`s.  Clang should accept both spellings in C++11 attribute syntax.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykUlGL2zwQ_DXrF3FGWdtJ_OCHJEc-vve-B0te2yqKFLyra6-_vsiX3gVaWkphkWDQjGaG7ZndFIg6aI7QPBd9kjku3bhEI2TnwsThtfvvdFKA-8P58P_pk2IXLKkXWtjFoNpyA9iq3lq6CSuZScFWh3jhPjhx3wi2WvUiizNJSLmgTJQ5v7lc3uHLBXAPuH-kZQDLsgREwPY-WSsMmb36PU4hQXWA6vAbZvOcZ6sV38h7FyYulTr5PkxqiMQBcCd3_38UXlUfJE0SFYN__SDaLPwXnqJyArhjFaKoW2R2xpOSqBKTusaBlqBOgEfA40ON_Bqk_5rb5JgWS8rGIR_XWy-rwBcn81vTGXSeFl6xmN5CYuXGgUbY6o82eI7JDz-qWMnvleWv7jY2m5-MlKAPxdBVQ1u1fUHdZlftdxqrpirmbtSot5umtlWta2sRtRkabAdsG7vva1u4DjU2GnWNusEKy7GqWmOo3mtqm1GPUGu69s6X3r9cy7hMhWNO1G2w2W114XtDntcNRnzrHzEv89JlwpNJE0OtvWPhDwlx4qmzv0j-b9tVpMV3s8iNMxfPgOfJyZxMaeMV8JwN3K-n2xI_kxXA8xqIAc_3TC8dfg8AAP__T9IdUg">