[PATCH] D44753: [Preprocessor] Rename __is_{target -> host}_* function-like builtin macros

Steven Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 21 15:40:31 PDT 2018


steven_wu added a comment.

I am not trying to discuss which english word is best here. My point is simply:

1. macros are evaluated during compile time
2. "host"means either the platform you compiled on during compile time or the platform you run on during the runtime
3. __is_host_* is not a good name, because it is misleading as it either implies "runtime" as a compile-time constant, or indicates the wrong platform.


Repository:
  rC Clang

https://reviews.llvm.org/D44753





More information about the cfe-commits mailing list