================ @@ -73,6 +73,23 @@ Nullability getNullabilityAnnotation(QualType Type); /// returned. std::optional<int> tryExpandAsInteger(StringRef Macro, const Preprocessor &PP); +class CachedMacroValue { ---------------- balazske wrote:
What is the advantage of using this instead of just `std::optional`? The member functions are just forwarding the operations. 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