================
@@ -3771,6 +3771,10 @@ void Preprocessor::HandleElifFamilyDirective(Token
&ElifToken,
std::optional<LexEmbedParametersResult>
Preprocessor::LexEmbedParameters(Token &CurTok, bool ForHasEmbed) {
LexEmbedParametersResult Result{};
+ if (ForHasEmbed)
+ assert(isParsingIfOrElifDirective() &&
+ "__has_embed outside of #if or #elif directive?");
----------------
ianayl wrote:
That does seem cleaner, thanks btw!
https://github.com/llvm/llvm-project/pull/224769
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits