[clang] [NFC] [FlowSensitive] add comment (PR #160223)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 22 19:55:59 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Florian Mayer (fmayer)
<details>
<summary>Changes</summary>
This will make it easier to understand what the function does without
needing to read the code.
---
Full diff: https://github.com/llvm/llvm-project/pull/160223.diff
1 Files Affected:
- (modified) clang/include/clang/Analysis/FlowSensitive/CachedConstAccessorsLattice.h (+1)
``````````diff
diff --git a/clang/include/clang/Analysis/FlowSensitive/CachedConstAccessorsLattice.h b/clang/include/clang/Analysis/FlowSensitive/CachedConstAccessorsLattice.h
index 78b03d325efd9..257f96a3a4bc8 100644
--- a/clang/include/clang/Analysis/FlowSensitive/CachedConstAccessorsLattice.h
+++ b/clang/include/clang/Analysis/FlowSensitive/CachedConstAccessorsLattice.h
@@ -121,6 +121,7 @@ joinConstMethodMap(
llvm::SmallDenseMap<const FunctionDecl *, T *>>
&Map2,
LatticeEffect &Effect) {
+ // Intersect the two maps, and note if change was made.
llvm::SmallDenseMap<const RecordStorageLocation *,
llvm::SmallDenseMap<const FunctionDecl *, T *>>
Result;
``````````
</details>
https://github.com/llvm/llvm-project/pull/160223
More information about the cfe-commits
mailing list