aboutsummaryrefslogtreecommitdiff
path: root/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-08-09 21:02:45 +0000
committerAnna Zaks <ganna@apple.com>2012-08-09 21:02:45 +0000
commitd4fe57f7f7a8793227effc1274d70ec44cee9a4f (patch)
tree0b59c4e2bc75cb2635c3338a63778cdd58dd7ca8 /include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
parent6960f6e53b0d9a69a460c99ec199470271ff9603 (diff)
[analyzer] Rename the function to better reflect what it actually does.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
index 84a839819c..3785e900c8 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
@@ -334,14 +334,14 @@ public:
/// \brief Get dynamic type information for a region.
DynamicTypeInfo getDynamicTypeInfo(const MemRegion *Reg) const;
- /// \brief Add dynamic type information to the region; return the new state.
- ProgramStateRef addDynamicTypeInfo(const MemRegion *Reg,
+ /// \brief Set dynamic type information of the region; return the new state.
+ ProgramStateRef setDynamicTypeInfo(const MemRegion *Reg,
DynamicTypeInfo NewTy) const;
- /// \brief Add dynamic type information to the region; return the new state.
- ProgramStateRef addDynamicTypeInfo(const MemRegion *Reg,
+ /// \brief Set dynamic type information of the region; return the new state.
+ ProgramStateRef setDynamicTypeInfo(const MemRegion *Reg,
QualType NewTy) const {
- return addDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy));
+ return setDynamicTypeInfo(Reg, DynamicTypeInfo(NewTy));
}
//==---------------------------------------------------------------------==//