[PATCH] D102261: Introduce SYCL 2020 mode

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 11 12:15:18 PDT 2021


dexonsmith added inline comments.


================
Comment at: clang/include/clang/Basic/LangOptions.h:130
 
   enum SYCLMajorVersion {
     SYCL_None,
----------------
aaron.ballman wrote:
> tschuett wrote:
> > Do you want to change  it to a scoped enum or will this cause major issues? ClangABI is a scoped enum?!?
> Given that it's already scoped to `LangOptions`, I think a scoped enum adds more noise than anything. It'd make it awkward to name the actual enumerators due to using dates. I think we'd wind up needing to write `LangOptions::SYCLMajorVersion::Ver2017` (or something along those lines), which doesn't seem like a huge win to me. WDYT?
FWIW, I agree that a scoped enum wouldn't improve things here.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102261/new/

https://reviews.llvm.org/D102261



More information about the cfe-commits mailing list