[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / lldb / examples / summaries / objc.py
blob486a9c8213429fbba18c6ce6bb5a6b30a705b1e4
1 # Summaries for common ObjC types that require Python scripting
2 # to be generated fit into this file
5 def BOOL_SummaryProvider(valobj, dict):
6 if not (valobj.IsValid()):
7 return "<invalid>"
8 if valobj.GetValueAsUnsigned() == 0:
9 return "NO"
10 else:
11 return "YES"
14 def BOOLRef_SummaryProvider(valobj, dict):
15 return BOOL_SummaryProvider(valobj.GetChildAtIndex(0), dict)
18 def BOOLPtr_SummaryProvider(valobj, dict):
19 return BOOL_SummaryProvider(valobj.Dereference(), dict)