[clang] [analyzer] Delay the checker constructions after parsing (PR #127409)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 17 04:08:45 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list