Lines Matching refs:path

80                    [--repository=path]
83 [--exclude=path]
152 repository=path
155 path that contains .git, .hg, or .svn. When this flag is specified, the
156 given path is used instead. This option allows the header guard CPP
206 exclude=path
207 Exclude the given path from the list of files to be linted. Relative
1141 # The path of last found header.
1155 """Returns a path canonicalized for alphabetical comparison.
1165 Canonicalized path.
1558 FileInfo provides easy access to the components of a file's path
1567 return os.path.abspath(self._filename).replace('\\', '/')
1570 r"""FullName after removing the local path to the repository.
1572 If we have a real absolute path name here we can try to do something smart:
1573 detecting the root of the checkout and truncating /path/to/checkout from
1581 if os.path.exists(fullname):
1582 project_dir = os.path.dirname(fullname)
1584 # If the user specified a repository path, it exists, and the file is
1585 # contained in it, use the specified repository path
1589 while os.path.exists(root_dir):
1591 if os.path.normcase(root_dir) == os.path.normcase(repo):
1592 return os.path.relpath(fullname, root_dir).replace('\\', '/')
1593 one_up_dir = os.path.dirname(root_dir)
1598 if os.path.exists(os.path.join(project_dir, ".svn")):
1602 one_up_dir = os.path.dirname(root_dir)
1603 while os.path.exists(os.path.join(one_up_dir, ".svn")):
1604 root_dir = os.path.dirname(root_dir)
1605 one_up_dir = os.path.dirname(one_up_dir)
1607 prefix = os.path.commonprefix([root_dir, project_dir])
1611 # searching up from the current path.
1612 root_dir = current_dir = os.path.dirname(fullname)
1613 while current_dir != os.path.dirname(current_dir):
1614 if (os.path.exists(os.path.join(current_dir, ".git")) or
1615 os.path.exists(os.path.join(current_dir, ".hg")) or
1616 os.path.exists(os.path.join(current_dir, ".svn"))):
1618 current_dir = os.path.dirname(current_dir)
1620 if (os.path.exists(os.path.join(root_dir, ".git")) or
1621 os.path.exists(os.path.join(root_dir, ".hg")) or
1622 os.path.exists(os.path.join(root_dir, ".svn"))):
1623 prefix = os.path.commonprefix([root_dir, project_dir])
1640 project, rest = os.path.split(googlename)
1641 return (project,) + os.path.splitext(rest)
2267 def PathSplitToList(path):
2268 """Returns the path split into a list by the separator.
2271 path: An absolute or relative path (e.g. '/a/b/c/' or '../a')
2274 A list of path components (e.g. ['a', 'b', 'c]).
2278 (head, tail) = os.path.split(path)
2279 if head == path: # absolute paths end
2282 if tail == path: # relative paths end
2286 path = head
2319 # Process the file path with the --root flag if it was set.
2342 return os.path.join(*maybe_path)
2347 root_abspath = os.path.abspath(_root).replace('\\', '/')
2357 return os.path.join(*maybe_path)
2483 if not os.path.exists(headerfile):
4975 return os.path.splitext(filename)[0]
4983 include: The path to a #included file.
5015 is_system = used_angle_brackets and not os.path.splitext(include)[1] in ['.hpp', '.hxx', '.h++']
5029 os.path.split(_DropCommonSuffixes(fileinfo.RepositoryName())))
5030 include_dir, include_base = os.path.split(_DropCommonSuffixes(include))
5031 target_dir_pub = os.path.normpath(target_dir + '/../public')
5100 os.path.dirname(fileinfo.RepositoryName()) != os.path.dirname(include)):
5981 some/path/public/xyzzy and some/path/internal/xyzzy are also considered
5984 If the filename_cc contains a longer path than the filename_h, for example,
5985 '/absolute/path/to/base/sysinfo.cc', and this file would include
5996 filename_cc: is the path for the source (e.g. .cc) file
5997 filename_h: is the path for the header path
6122 # Use the absolute path so that matching works properly.
6520 abs_filename = os.path.abspath(filename)
6524 abs_path, base_name = os.path.split(abs_filename)
6528 cfg_file = os.path.join(abs_path, "CPPLINT.cfg")
6530 if not os.path.isfile(cfg_file):
6561 'File path component "%s" matches '
6576 _root = os.path.join(os.path.dirname(cfg_file), val)
6839 if not os.path.isdir(filename):
6845 fullname = os.path.join(root, loopfile)
6846 if fullname.startswith('.' + os.path.sep):
6847 fullname = fullname[len('.' + os.path.sep):]
6852 if os.path.splitext(filename)[1][1:] in GetAllExtensions():
6860 exclude_paths = [os.path.abspath(f) for f in _excludes]
6864 if _IsParentOrSame(e, os.path.abspath(f)))]
6870 parent = os.path.normpath(parent)
6871 child = os.path.normpath(child)
6875 prefix = os.path.commonprefix([parent, child])
6878 # Note: os.path.commonprefix operates on character basis, so
6882 return child == os.path.join(prefix, child_suffix)