[clang] [HLSL] Add NativeInt16Type langopt to control whether short type is supported. Enabled by default for all but HLSL. (PR #165584)
Sarah Spall via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 29 10:02:05 PDT 2025
================
@@ -4248,6 +4248,13 @@ void Parser::ParseDeclarationSpecifiers(
// type-specifier
case tok::kw_short:
+ if (!getLangOpts().NativeInt16Type) {
----------------
spall wrote:
I've updated the PR description to make this intention more clear.
https://github.com/llvm/llvm-project/pull/165584
More information about the cfe-commits
mailing list