aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorJan Voung <jvoung@google.com>2024-10-22 10:18:22 -0400
committerGitHub <noreply@github.com>2024-10-22 10:18:22 -0400
commit6761b24ae2f34b923df46412475a9ece50542b97 (patch)
tree235b101a926f513ae32ca3076000a817b3c580b1 /clang/lib/Basic/Module.cpp
parentb81d8e90339a788cc6cb148831612c6b39b93ad5 (diff)
downloadllvm-6761b24ae2f34b923df46412475a9ece50542b97.zip
llvm-6761b24ae2f34b923df46412475a9ece50542b97.tar.gz
llvm-6761b24ae2f34b923df46412475a9ece50542b97.tar.bz2
[clang][dataflow] Cache accessors for bugprone-unchecked-optional-access (#112605)
Treat calls to zero-param const methods as having stable return values (with a cache) to address issue #58510. The cache is invalidated when non-const methods are called. This uses the infrastructure from PR #111006. For now we cache methods returning: - ref to optional - optional by value - booleans We can extend that to pointers to optional in a next change.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions