[clang] [ParserHLSL] Attempt to parse HLSL annotations on Field Decls. (PR #96346)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 21 13:44:30 PDT 2024


================
@@ -2646,6 +2646,9 @@ bool Parser::ParseCXXMemberDeclaratorBeforeInitializer(
   else
     DeclaratorInfo.SetIdentifier(nullptr, Tok.getLocation());
 
+  if (getLangOpts().HLSL)
----------------
bob80905 wrote:

Though both would hit an assert if they're called outside of HLSL mode, I do believe that one overload has a redundant check for HLSL mode, I'll remove that.


https://github.com/llvm/llvm-project/pull/96346


More information about the cfe-commits mailing list