Provides utility functions for filenames.
FileInfo provides easy access to the components of a file's path
relative to the project root.
Definition at line 1250 of file ioda/tools/cpplint.py.
◆ __init__() [1/3]
def cpplint.FileInfo.__init__ |
( |
|
self, |
|
|
|
filename |
|
) |
| |
◆ __init__() [2/3]
def cpplint.FileInfo.__init__ |
( |
|
self, |
|
|
|
filename |
|
) |
| |
◆ __init__() [3/3]
def cpplint.FileInfo.__init__ |
( |
|
self, |
|
|
|
filename |
|
) |
| |
◆ BaseName() [1/3]
def cpplint.FileInfo.BaseName |
( |
|
self | ) |
|
◆ BaseName() [2/3]
def cpplint.FileInfo.BaseName |
( |
|
self | ) |
|
◆ BaseName() [3/3]
def cpplint.FileInfo.BaseName |
( |
|
self | ) |
|
File base name - text after the final slash, before the final period.
Definition at line 1339 of file ufo/tools/cpplint.py.
◆ Extension() [1/3]
def cpplint.FileInfo.Extension |
( |
|
self | ) |
|
File extension - text following the final period, includes that period.
Definition at line 1343 of file ufo/tools/cpplint.py.
◆ Extension() [2/3]
def cpplint.FileInfo.Extension |
( |
|
self | ) |
|
File extension - text following the final period, includes that period.
Definition at line 1343 of file ioda/tools/cpplint.py.
◆ Extension() [3/3]
def cpplint.FileInfo.Extension |
( |
|
self | ) |
|
File extension - text following the final period, includes that period.
Definition at line 1343 of file oops/tools/cpplint.py.
◆ FullName() [1/3]
def cpplint.FileInfo.FullName |
( |
|
self | ) |
|
◆ FullName() [2/3]
def cpplint.FileInfo.FullName |
( |
|
self | ) |
|
◆ FullName() [3/3]
def cpplint.FileInfo.FullName |
( |
|
self | ) |
|
◆ IsSource() [1/3]
def cpplint.FileInfo.IsSource |
( |
|
self | ) |
|
◆ IsSource() [2/3]
def cpplint.FileInfo.IsSource |
( |
|
self | ) |
|
◆ IsSource() [3/3]
def cpplint.FileInfo.IsSource |
( |
|
self | ) |
|
◆ NoExtension() [1/3]
def cpplint.FileInfo.NoExtension |
( |
|
self | ) |
|
◆ NoExtension() [2/3]
def cpplint.FileInfo.NoExtension |
( |
|
self | ) |
|
◆ NoExtension() [3/3]
def cpplint.FileInfo.NoExtension |
( |
|
self | ) |
|
◆ RepositoryName() [1/3]
def cpplint.FileInfo.RepositoryName |
( |
|
self | ) |
|
FullName after removing the local path to the repository.
If we have a real absolute path name here we can try to do something smart:
detecting the root of the checkout and truncating /path/to/checkout from
the name so that we get header guards that don't include things like
"C:\Documents and Settings\..." or "/home/username/..." in them and thus
people on different computers who have checked the source out to different
locations won't see bogus errors.
Definition at line 1264 of file oops/tools/cpplint.py.
◆ RepositoryName() [2/3]
def cpplint.FileInfo.RepositoryName |
( |
|
self | ) |
|
FullName after removing the local path to the repository.
If we have a real absolute path name here we can try to do something smart:
detecting the root of the checkout and truncating /path/to/checkout from
the name so that we get header guards that don't include things like
"C:\Documents and Settings\..." or "/home/username/..." in them and thus
people on different computers who have checked the source out to different
locations won't see bogus errors.
Definition at line 1264 of file ioda/tools/cpplint.py.
◆ RepositoryName() [3/3]
def cpplint.FileInfo.RepositoryName |
( |
|
self | ) |
|
FullName after removing the local path to the repository.
If we have a real absolute path name here we can try to do something smart:
detecting the root of the checkout and truncating /path/to/checkout from
the name so that we get header guards that don't include things like
"C:\Documents and Settings\..." or "/home/username/..." in them and thus
people on different computers who have checked the source out to different
locations won't see bogus errors.
Definition at line 1264 of file ufo/tools/cpplint.py.
◆ Split() [1/3]
def cpplint.FileInfo.Split |
( |
|
self | ) |
|
Splits the file into the directory, basename, and extension.
For 'chrome/browser/browser.cc', Split() would
return ('chrome/browser', 'browser', '.cc')
Returns:
A tuple of (directory, basename, extension).
Definition at line 1325 of file ioda/tools/cpplint.py.
◆ Split() [2/3]
def cpplint.FileInfo.Split |
( |
|
self | ) |
|
Splits the file into the directory, basename, and extension.
For 'chrome/browser/browser.cc', Split() would
return ('chrome/browser', 'browser', '.cc')
Returns:
A tuple of (directory, basename, extension).
Definition at line 1325 of file ufo/tools/cpplint.py.
◆ Split() [3/3]
def cpplint.FileInfo.Split |
( |
|
self | ) |
|
Splits the file into the directory, basename, and extension.
For 'chrome/browser/browser.cc', Split() would
return ('chrome/browser', 'browser', '.cc')
Returns:
A tuple of (directory, basename, extension).
Definition at line 1325 of file oops/tools/cpplint.py.
◆ _filename
cpplint.FileInfo._filename |
|
private |
The documentation for this class was generated from the following file: