Files
llvm-project/clang/lib/Basic/Cuda.cpp
Khem Raj 82f18b02d9 [Clang] Rename OffloadArch::UNUSED to UNUSED_ to avoid macro collisions (#174528)
OffloadArch uses an enumerator named `UNUSED`, which is a very common
macro name in external codebases (e.g. Mesa defines UNUSED as an
attribute helper). If such a macro is visible when including
clang/Basic/OffloadArch.h, the preprocessor expands the token inside the
enum and breaks compilation of the installed Clang headers.

Rename the enumerator to `UNUSED_` and update all in-tree references.
This is a spelling-only change (no behavioral impact) and mirrors the
existing approach used for SM_32_ to avoid macro clashes.
2026-03-20 17:22:17 -04:00

6.6 KiB