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

    <tr>
        <th>Summary</th>
        <td>
            Support header based extensions in -cl-ext
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            opencl
      </td>
    </tr>

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

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

<pre>
    Currently `-cl-ext` silently accepts extensions that clang doesn't implement. However more helpful behavior could be as follows When extension doesn't correspond to any known extension:
- A warning is provided that can be suppressed by a flag;
- Clang adds a new macro to predefined macros that controls whether predefined extension macros are being defined or not. Similar idea is expressed in https://reviews.llvm.org/D91531 with use of `__undef_cl_khr_<name>`  macros.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxVksGO4jAMhp-mvVigktIiDj0wsKu9c9gjchOXZiZNqjilM2-_Lgs7rFQpiRPb3_-7bTBfzXGKkXxyX5DVxUq7FX0m2QFb9zeMWtOYGCROnm3wDKnHBNqhv4IJxD5TuwR2GB0NkrOGX2GmG0UYQiToyY3d5KClHm82RNBhckaOgAxdcC7MDL978t8dXqrqIHg8Bm8gBUD_BR8-zC9vs_KQFaesOKzgADNGb4XKMowx3Kwh84BFv3TkaRylHEu4FWXQObxm5duzwPEuCY1hufM0w4A6hqWxZBnqrJfEe-zpQfApBscw95R6Ufzy7lvNIwPFjJYWvOcTMcMH8etsB-swgvDiwk6fT0rroU9p5EWl-ilfpJulmdfO3YZ1iFcJnfabqtzAbFMPExOEbhnl5TJ56XPR7vLRx0tWHj0OlJU_luE-kNa5aUqzL_eYJ5scNWfxJ8QkM0MjalrkVyG84Dx-kXyKrvkf7SoAU7vWYZDDwvdYVjKKd9JJjpZ5IpZNVdW7bd439Va1ZVfrUiPWHaKuFaq23ptdWexqotxhS46brHrLlAojee1kk1Wn3DaqUKqo1HZTVMVGrdWu1V1XGzQlmU3VZtuCBrTun1d5bO487XRluXSW07eROTLbqye695L6OKU-xObgkROyxXOaXLhhftfQ3AX8AUTWHyI">