[PATCH] D132229: [clang][dataflow] Mark `getDeclCtx` function in dataflow `Environment` `const`.
weiyi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 19 13:07:53 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb0befe3ac1ba: [clang][dataflow] Mark `getDeclCtx` function in dataflow `Environment` `const`. (authored by wyt).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132229/new/
https://reviews.llvm.org/D132229
Files:
clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
Index: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
===================================================================
--- clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
+++ clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
@@ -348,7 +348,7 @@
/// Returns the `DeclContext` of the block being analysed, if any. Otherwise,
/// returns null.
- const DeclContext *getDeclCtx() { return CallStack.back(); }
+ const DeclContext *getDeclCtx() const { return CallStack.back(); }
/// Returns whether this `Environment` can be extended to analyze the given
/// `Callee` (i.e. if `pushCall` can be used), with recursion disallowed and a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132229.454088.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220819/763b1044/attachment.bin>
More information about the cfe-commits
mailing list