[clang] [clang] [Headers] Don't use unreserved name in avx512fp16intrin.h (PR #98478)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 07:01:19 PDT 2024


https://github.com/AaronBallman commented:

The only other unreserved name I could find in the file is:

https://github.com/llvm/llvm-project/blob/d9c26b9d560f4362503b8f0ec97a52a0a36a57ce/clang/lib/Headers/avx512fp16intrin.h#L99 (uses `h`)

so we might as well fix this at the same time. We should probably have tests using https://clang.llvm.org/extra/clang-tidy/checks/bugprone/reserved-identifier.html that runs over all of the system headers we produce to issue a diagnostic when we use an unreserved identifier so that we catch this issue more explicitly.

https://github.com/llvm/llvm-project/pull/98478


More information about the cfe-commits mailing list