[clang] [clang] implement __builtin_mangled_name (PR #236294)
Matthias Wippich via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 3 10:49:38 PST 2026
================
@@ -1903,6 +1906,8 @@ TypeTraitExpr::TypeTraitExpr(
TypeTraitExprBits.IsBooleanTypeTrait = std::holds_alternative<bool>(Value);
TypeTraitExprBits.IsComparisonResult =
std::holds_alternative<ComparisonCategoryResult>(Value);
+ TypeTraitExprBits.IsStringLiteral = std::holds_alternative<APValue>(Value) &&
+ std::get<APValue>(Value).isLValue();
----------------
Tsche wrote:
Agreed. I wanted to prevent adding any more expensive checks before it's actually required, but asserting is a good idea.
https://github.com/llvm/llvm-project/pull/236294
More information about the cfe-commits
mailing list