summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Language/ObjC/CF.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <syaghmour@apple.com>2022-02-16 11:51:50 -0800
committerShafik Yaghmour <syaghmour@apple.com>2022-02-16 11:54:45 -0800
commit80a11e0803585556804274fc374b208901aa7a94 (patch)
tree53c1ddcc008fffadd38cbb2c3107cdea3c2f9851 /lldb/source/Plugins/Language/ObjC/CF.cpp
parent21658b77a5965217eb67f8e1ccd4307111c775f7 (diff)
[LLDB] Replace use of double underscore in identifiers
Identifiers with __ anywhere are reserved. I picked this up via the bugprone-reserved-identifier clang-tidy check but -Wreserved-identifier will also flag these uses as well. Differential Revision: https://reviews.llvm.org/D119915
Diffstat (limited to 'lldb/source/Plugins/Language/ObjC/CF.cpp')
-rw-r--r--lldb/source/Plugins/Language/ObjC/CF.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Language/ObjC/CF.cpp b/lldb/source/Plugins/Language/ObjC/CF.cpp
index 2610468b17fd..6a4631e69387 100644
--- a/lldb/source/Plugins/Language/ObjC/CF.cpp
+++ b/lldb/source/Plugins/Language/ObjC/CF.cpp
@@ -74,10 +74,10 @@ bool lldb_private::formatters::CFBagSummaryProvider(
if (descriptor->IsCFType()) {
ConstString type_name(valobj.GetTypeName());
- static ConstString g___CFBag("__CFBag");
+ static ConstString g_CFBag("__CFBag");
static ConstString g_conststruct__CFBag("const struct __CFBag");
- if (type_name == g___CFBag || type_name == g_conststruct__CFBag) {
+ if (type_name == g_CFBag || type_name == g_conststruct__CFBag) {
if (valobj.IsPointerType())
is_type_ok = true;
}
@@ -257,12 +257,12 @@ bool lldb_private::formatters::CFBinaryHeapSummaryProvider(
if (descriptor->IsCFType()) {
ConstString type_name(valobj.GetTypeName());
- static ConstString g___CFBinaryHeap("__CFBinaryHeap");
+ static ConstString g_CFBinaryHeap("__CFBinaryHeap");
static ConstString g_conststruct__CFBinaryHeap(
"const struct __CFBinaryHeap");
static ConstString g_CFBinaryHeapRef("CFBinaryHeapRef");
- if (type_name == g___CFBinaryHeap ||
+ if (type_name == g_CFBinaryHeap ||
type_name == g_conststruct__CFBinaryHeap ||
type_name == g_CFBinaryHeapRef) {
if (valobj.IsPointerType())