================
@@ -73,6 +73,23 @@ Nullability getNullabilityAnnotation(QualType Type);
 /// returned.
 std::optional<int> tryExpandAsInteger(StringRef Macro, const Preprocessor &PP);
 
+class CachedMacroValue {
----------------
Xazax-hun wrote:

I think with the optional we cannot distinguish between the case whether the 
`tryExpandAsInteger` failed or it was not called yet. Here, it is part of the 
type's contract that the `tryExpandAsInteger` was already called. 

https://github.com/llvm/llvm-project/pull/127409
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to