brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1001 B · ceffbdd Raw
21 lines · plain
1%feature("docstring",2"Represents a file specification that divides the path into a directory and3basename.  The string values of the paths are put into uniqued string pools4for fast comparisons and efficient memory usage.5 6For example, the following code ::7 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 ')17 18gets the line entry from the symbol context when a thread is stopped.19It gets the file spec corresponding to the line entry and checks that20the filename and the directory matches what we expect.") lldb::SBFileSpec;21