Home
last modified time | relevance | path

Searched refs:root_dirs (Results 1 – 10 of 10) sorted by relevance

/development/vndk/tools/header-checker/src/utils/
Dsource_path_utils_test.cpp74 std::vector<RootDir> root_dirs{{header_dir, "include"}, in TEST() local
77 CollectAllExportedHeaders(exported_header_dirs, root_dirs); in TEST()
87 const RootDirs root_dirs = ParseRootDirs(args); in TEST() local
88 ASSERT_EQ(1, root_dirs.size()); in TEST()
89 ASSERT_EQ("/root/dir", root_dirs[0].path); in TEST()
90 ASSERT_EQ("", root_dirs[0].replacement); in TEST()
92 EXPECT_EQ("", NormalizePath("/root/dir", root_dirs)); in TEST()
93 EXPECT_EQ("test", NormalizePath("/root/dir/test", root_dirs)); in TEST()
95 NormalizePath("/root/dir/../unit/test", root_dirs)); in TEST()
116 const RootDirs root_dirs = ParseRootDirs(args); in TEST() local
[all …]
Dsource_path_utils.cpp68 RootDirs root_dirs; in ParseRootDirs() local
83 root_dirs.emplace_back(NormalizePath(path, {}), in ParseRootDirs()
86 if (root_dirs.empty()) { in ParseRootDirs()
87 root_dirs.emplace_back(GetCwd(), ""); in ParseRootDirs()
91 std::sort(root_dirs.begin(), root_dirs.end(), in ParseRootDirs()
95 for (size_t index = 1; index < root_dirs.size(); index++) { in ParseRootDirs()
96 if (root_dirs[index - 1].path == root_dirs[index].path) { in ParseRootDirs()
97 llvm::errs() << "Duplicate root dir: " << root_dirs[index].path << "\n"; in ParseRootDirs()
101 return root_dirs; in ParseRootDirs()
104 std::string NormalizePath(std::string_view path, const RootDirs &root_dirs) { in NormalizePath() argument
[all …]
Dsource_path_utils.h41 std::string NormalizePath(std::string_view path, const RootDirs &root_dirs);
45 const RootDirs &root_dirs);
/development/vndk/tools/header-checker/src/dumper/
Dast_util.h35 const utils::RootDirs &root_dirs) in ASTCaches()
37 root_dirs_(root_dirs) {} in ASTCaches()
Dheader_checker.h42 utils::RootDirs root_dirs, in HeaderCheckerOptions() argument
48 root_dirs_(std::move(root_dirs)), in HeaderCheckerOptions()
Dheader_checker.cpp68 static llvm::cl::list<std::string> root_dirs( variable
174 RootDirs parsed_root_dirs = ParseRootDirs(root_dirs); in main()
Dast_processing.cpp35 PrintNormalizedPath(const utils::RootDirs &root_dirs) in PrintNormalizedPath() argument
36 : root_dirs_(root_dirs) {} in PrintNormalizedPath()
Dabi_wrappers.h52 const utils::RootDirs &root_dirs);
Dabi_wrappers.cpp72 const utils::RootDirs &root_dirs) { in GetDeclSourceFile() argument
83 root_dirs); in GetDeclSourceFile()
/development/vndk/tools/header-checker/src/linker/
Dheader_abi_linker.cpp63 static llvm::cl::list<std::string> root_dirs( variable
286 ParseRootDirs(root_dirs)); in LinkAndDump()