[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / bindings / interface / SBFileSpecDocstrings.i
blobceffbddd14120f4c6d71e2a68bb5abc19b0c455f
1 %feature("docstring",
2 "Represents a file specification that divides the path into a directory and
3 basename. The string values of the paths are put into uniqued string pools
4 for fast comparisons and efficient memory usage.
6 For example, the following code ::
8 lineEntry = context.GetLineEntry()
9 self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory',
10 exe=False,
11 substrs = [self.mydir])
12 self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename',
13 exe=False,
14 substrs = ['main.c'])
15 self.assertTrue(lineEntry.GetLine() == self.line,
16 'The line entry's line number should match ')
18 gets the line entry from the symbol context when a thread is stopped.
19 It gets the file spec corresponding to the line entry and checks that
20 the filename and the directory matches what we expect.") lldb::SBFileSpec;