[clang] [HLSL] Add NativeInt16Type langopt to control whether short type is supported. Enabled by default for all but HLSL. (PR #165584)
Finn Plummer via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 29 10:28:11 PDT 2025
================
@@ -4248,6 +4248,13 @@ void Parser::ParseDeclarationSpecifiers(
// type-specifier
case tok::kw_short:
+ if (!getLangOpts().NativeInt16Type) {
----------------
inbelic wrote:
Ah I see. Thanks for clarifying
https://github.com/llvm/llvm-project/pull/165584
More information about the cfe-commits
mailing list