[clang] [analyzer] Delay the checker constructions after parsing (PR #127409)

Balázs Kéri via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 17 02:49:24 PST 2025


================
@@ -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


More information about the cfe-commits mailing list