summaryrefslogtreecommitdiff
path: root/clang/include
diff options
context:
space:
mode:
authorMartin Braenne <mboehme@google.com>2023-05-08 19:08:36 +0000
committerMartin Braenne <mboehme@google.com>2023-05-09 07:42:20 +0000
commit0c852dc88e9276b74532fd7d233dd23ec1bbed6f (patch)
treee6d4c5eb4e98977566366ca0ae5c4210cd002e76 /clang/include
parenta940c23e7eeabaad04676cca12a26bd84db8305d (diff)
downloadllvm-0c852dc88e9276b74532fd7d233dd23ec1bbed6f.tar.gz
[clang][dataflow][NFC] Remove `SkipPast` param from `getValue(const ValueDecl &)`.
This parameter was already a no-op, so removing it doesn't change behavior. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D150137
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h b/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
index 7f24755d9923..c23e0db7f82d 100644
--- a/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
+++ b/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
@@ -314,11 +314,7 @@ public:
/// Equivalent to `getValue(getStorageLocation(D, SP), SkipPast::None)` if `D`
/// is assigned a storage location in the environment, otherwise returns null.
- ///
- /// The `SP` parameter is deprecated and has no effect. In addition, it is
- /// not permitted to pass `SkipPast::ReferenceThenPointer` for this parameter.
- /// New uses of this function should use the default argument for `SP`.
- Value *getValue(const ValueDecl &D, SkipPast SP = SkipPast::None) const;
+ Value *getValue(const ValueDecl &D) const;
/// Equivalent to `getValue(getStorageLocation(E, SP), SkipPast::None)` if `E`
/// is assigned a storage location in the environment, otherwise returns null.