[llvm-dev] Naming clash: -DCLS=n and CLS in code

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 19 10:55:07 PDT 2018

On Tue, 19 Jun 2018 at 18:22, U.Mutlu via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> I think such "reserved" names like CLS that can be passed to the compiler(s),
> should be avoided as identifiers for naming variables, constants, enum
> members, macros etc.

Why are you passing that argument in the first place? The compiler
completely ignores it.

I sort of assume some library makes use of it, but if so that library
is certainly not required while compiling Clang and is actually
obscure enough that it's not even obvious from Googling. So it's a bit
of a stretch to claim the token is reserved.



More information about the llvm-dev mailing list