LLDB mainline
Cocoa.h
Go to the documentation of this file.
1//===-- Cocoa.h ---------------------------------------------------*- C++
2//-*-===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_COCOA_H
11#define LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_COCOA_H
12
16#include "lldb/Utility/Stream.h"
17
19
20namespace lldb_private {
21namespace formatters {
22bool NSIndexSetSummaryProvider(ValueObject &valobj, Stream &stream,
23 const TypeSummaryOptions &options);
24
25bool NSArraySummaryProvider(ValueObject &valobj, Stream &stream,
26 const TypeSummaryOptions &options);
27
28template <bool needs_at>
29bool NSDataSummaryProvider(ValueObject &valobj, Stream &stream,
30 const TypeSummaryOptions &options);
31
32bool NSNumberSummaryProvider(ValueObject &valobj, Stream &stream,
33 const TypeSummaryOptions &options);
34
35bool NSDecimalNumberSummaryProvider(ValueObject &valobj, Stream &stream,
36 const TypeSummaryOptions &options);
37
38bool NSNotificationSummaryProvider(ValueObject &valobj, Stream &stream,
39 const TypeSummaryOptions &options);
40
41bool NSTimeZoneSummaryProvider(ValueObject &valobj, Stream &stream,
42 const TypeSummaryOptions &options);
43
44bool NSMachPortSummaryProvider(ValueObject &valobj, Stream &stream,
45 const TypeSummaryOptions &options);
46
47bool NSDateSummaryProvider(ValueObject &valobj, Stream &stream,
48 const TypeSummaryOptions &options);
49
50bool NSBundleSummaryProvider(ValueObject &valobj, Stream &stream,
51 const TypeSummaryOptions &options);
52
53bool NSURLSummaryProvider(ValueObject &valobj, Stream &stream,
54 const TypeSummaryOptions &options);
55
57 const TypeSummaryOptions &);
58
60 const TypeSummaryOptions &);
61
64
68
69bool ObjCClassSummaryProvider(ValueObject &valobj, Stream &stream,
70 const TypeSummaryOptions &options);
71
74
75bool ObjCBOOLSummaryProvider(ValueObject &valobj, Stream &stream,
76 const TypeSummaryOptions &options);
77
79 const TypeSummaryOptions &options);
80
81template <bool is_sel_ptr>
82bool ObjCSELSummaryProvider(ValueObject &valobj, Stream &stream,
83 const TypeSummaryOptions &options);
84
86 const TypeSummaryOptions &);
87
89 const TypeSummaryOptions &);
90
91bool NSError_SummaryProvider(ValueObject &valobj, Stream &stream,
92 const TypeSummaryOptions &options);
93
95 const TypeSummaryOptions &options);
96
99 lldb::ValueObjectSP valobj_sp);
100
103 lldb::ValueObjectSP valobj_sp);
104
106public:
107 static std::map<ConstString, CXXFunctionSummaryFormat::Callback> &
108 GetAdditionalSummaries();
109
110 static std::map<ConstString, CXXSyntheticChildren::CreateFrontEndCallback> &
111 GetAdditionalSynthetics();
112};
113} // namespace formatters
114} // namespace lldb_private
115
116#endif // LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_COCOA_H
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
bool NSURLSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:779
template bool NSDataSummaryProvider< true >(ValueObject &, Stream &, const TypeSummaryOptions &)
SyntheticChildrenFrontEnd * NSArraySyntheticFrontEndCreator(CXXSyntheticChildren *, lldb::ValueObjectSP)
Definition: NSArray.cpp:790
bool ObjCBOOLSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:1128
bool ObjCBooleanSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:1159
bool NSBundleSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:39
bool NSIndexSetSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:234
bool NSException_SummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: NSException.cpp:99
SyntheticChildrenFrontEnd * NSExceptionSyntheticFrontEndCreator(CXXSyntheticChildren *, lldb::ValueObjectSP valobj_sp)
bool NSDecimalNumberSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:730
template bool ObjCSELSummaryProvider< true >(ValueObject &, Stream &, const TypeSummaryOptions &)
bool NSArraySummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: NSArray.cpp:335
template bool ObjCSELSummaryProvider< false >(ValueObject &, Stream &, const TypeSummaryOptions &)
bool NSDataSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:1065
bool NSDateSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:903
SyntheticChildrenFrontEnd * NSIndexPathSyntheticFrontEndCreator(CXXSyntheticChildren *, lldb::ValueObjectSP)
bool NSNotificationSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:139
bool NSMachPortSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:188
template bool NSDataSummaryProvider< false >(ValueObject &, Stream &, const TypeSummaryOptions &)
bool NSError_SummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: NSError.cpp:54
bool ObjCSELSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:1189
bool ObjCClassSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:1005
bool NSNumberSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:437
bool NSTimeZoneSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options)
Definition: Cocoa.cpp:90
SyntheticChildrenFrontEnd * ObjCClassSyntheticFrontEndCreator(CXXSyntheticChildren *, lldb::ValueObjectSP)
Definition: Cocoa.cpp:1059
SyntheticChildrenFrontEnd * NSErrorSyntheticFrontEndCreator(CXXSyntheticChildren *, lldb::ValueObjectSP valobj_sp)
Definition: NSError.cpp:189
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
Definition: lldb-forward.h:478