[CodeGenPrepare] Drop nsw flags in `optimizeLoadExt` (#118180)
[llvm-project.git] / lldb / bindings / interface / SBSymbolContextListDocstrings.i
blobea7a923c56053908fdc175ce9f8a63b07218b2d7
1 %feature("docstring",
2 "Represents a list of symbol context object. See also SBSymbolContext.
4 For example (from test/python_api/target/TestTargetAPI.py), ::
6 def find_functions(self, exe_name):
7 '''Exercise SBTarget.FindFunctions() API.'''
8 exe = os.path.join(os.getcwd(), exe_name)
10 # Create a target by the debugger.
11 target = self.dbg.CreateTarget(exe)
12 self.assertTrue(target, VALID_TARGET)
14 list = lldb.SBSymbolContextList()
15 num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list)
16 self.assertTrue(num == 1 and list.GetSize() == 1)
18 for sc in list:
19 self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name)
20 self.assertTrue(sc.GetSymbol().GetName() == 'c')"
21 ) lldb::SBSymbolContextList;