================
@@ -1430,6 +1442,21 @@ static bool EvaluateBooleanTypeTrait(Sema &S, TypeTrait
Kind,
return false;
}
+static std::string
+EvaluateStringLiteralTypeTrait(Sema &S, TypeTrait Kind,
+ ArrayRef<TypeSourceInfo *> Args,
+ bool IsDependent) {
+ if (IsDependent)
+ return {};
+
+ switch (Kind) {
+ case UTT_MangledName:
+ return ComputeMangledName(S, Args[0]->getType());
+ default:
+ llvm_unreachable("not a string literal type trait");
+ }
----------------
zyn0217 wrote:
Let's `assert(Kind == UTT_MangledName)`
https://github.com/llvm/llvm-project/pull/236294
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits