aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/ADT
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-10-23 20:54:00 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-10-23 20:54:00 +0000
commit4ab74cdc124af6b4f57c2d2d09548e01d64a1f34 (patch)
tree4ee315d155fbc155cd5b53f9e60202179e3098fa /unittests/ADT
parent7abbd04e90489c087bfae03ad25c3a99aafbaded (diff)
downloadexternal_llvm-4ab74cdc124af6b4f57c2d2d09548e01d64a1f34.zip
external_llvm-4ab74cdc124af6b4f57c2d2d09548e01d64a1f34.tar.gz
external_llvm-4ab74cdc124af6b4f57c2d2d09548e01d64a1f34.tar.bz2
Fix stylistic and documentation problems in ValueMap found by Nick Lewycky and
Evan Cheng. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT')
-rw-r--r--unittests/ADT/ValueMapTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/ADT/ValueMapTest.cpp b/unittests/ADT/ValueMapTest.cpp
index 9de340c..e4eec75 100644
--- a/unittests/ADT/ValueMapTest.cpp
+++ b/unittests/ADT/ValueMapTest.cpp
@@ -187,7 +187,7 @@ struct LockMutex : ValueMapConfig<KeyT> {
*Data.CalledRAUW = true;
EXPECT_FALSE(Data.M->tryacquire()) << "Mutex should already be locked.";
}
- static void onDeleted(const ExtraData &Data, KeyT Old) {
+ static void onDelete(const ExtraData &Data, KeyT Old) {
*Data.CalledDeleted = true;
EXPECT_FALSE(Data.M->tryacquire()) << "Mutex should already be locked.";
}
@@ -238,7 +238,7 @@ struct CountOps : ValueMapConfig<KeyT> {
static void onRAUW(const ExtraData &Data, KeyT Old, KeyT New) {
++*Data.RAUWs;
}
- static void onDeleted(const ExtraData &Data, KeyT Old) {
+ static void onDelete(const ExtraData &Data, KeyT Old) {
++*Data.Deletions;
}
};
@@ -270,7 +270,7 @@ struct ModifyingConfig : ValueMapConfig<KeyT> {
static void onRAUW(ExtraData Map, KeyT Old, KeyT New) {
(*Map)->erase(Old);
}
- static void onDeleted(ExtraData Map, KeyT Old) {
+ static void onDelete(ExtraData Map, KeyT Old) {
(*Map)->erase(Old);
}
};