diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-20 01:06:37 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-20 01:06:37 +0000 |
commit | 5cb19e77259a89d0b34d819e9b3a7f1dc67d8dd8 (patch) | |
tree | c41d05b5e0980d6eb71a8b07b2ffa5a3b00c1d59 /lldb/scripts/Python/interface/SBFileSpec.i | |
parent | 869f0b70d482b3db13e314d84a938118e3ea2fd7 (diff) | |
download | bcm5719-llvm-5cb19e77259a89d0b34d819e9b3a7f1dc67d8dd8.tar.gz bcm5719-llvm-5cb19e77259a89d0b34d819e9b3a7f1dc67d8dd8.zip |
Add some docstrings for SBFileSpec class.
llvm-svn: 135553
Diffstat (limited to 'lldb/scripts/Python/interface/SBFileSpec.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBFileSpec.i | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBFileSpec.i b/lldb/scripts/Python/interface/SBFileSpec.i index 5897af44287..e2ef74bc93a 100644 --- a/lldb/scripts/Python/interface/SBFileSpec.i +++ b/lldb/scripts/Python/interface/SBFileSpec.i @@ -9,6 +9,27 @@ namespace lldb { +%feature("docstring", +"Represents a file specfication that divides the path into a directory and +basename. The string values of the paths are put into uniqued string pools +for fast comparisons and efficient memory usage. + +For example, the following code + + lineEntry = context.GetLineEntry() + self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory', + exe=False, + substrs = [self.mydir]) + self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename', + exe=False, + substrs = ['main.c']) + self.assertTrue(lineEntry.GetLine() == self.line, + 'The line entry's line number should match ') + +gets the line entry from the symbol context when a thread is stopped. +It gets the file spec corresponding to the line entry and checks that +the filename and the directory matches wat we expect. +") SBFileSpec; class SBFileSpec { public: |