Home
last modified time | relevance | path

Searched refs:slash_bits (Results 1 – 16 of 16) sorted by relevance

/third_party/ninja/src/
Dutil_test.cc180 uint64_t slash_bits; in TEST() local
183 EXPECT_TRUE(CanonicalizePath(&path, &slash_bits, &err)); in TEST()
185 EXPECT_EQ(0, slash_bits); in TEST()
188 EXPECT_TRUE(CanonicalizePath(&path, &slash_bits, &err)); in TEST()
190 EXPECT_EQ(1, slash_bits); in TEST()
193 EXPECT_TRUE(CanonicalizePath(&path, &slash_bits, &err)); in TEST()
195 EXPECT_EQ(4, slash_bits); in TEST()
198 EXPECT_TRUE(CanonicalizePath(&path, &slash_bits, &err)); in TEST()
200 EXPECT_EQ(5, slash_bits); in TEST()
203 EXPECT_TRUE(CanonicalizePath(&path, &slash_bits, &err)); in TEST()
[all …]
Ddyndep_parser.cc117 uint64_t slash_bits; in ParseEdge() local
118 if (!CanonicalizePath(&path, &slash_bits, &path_err)) in ParseEdge()
204 uint64_t slash_bits; in ParseEdge() local
205 if (!CanonicalizePath(&path, &slash_bits, &path_err)) in ParseEdge()
207 Node* n = state_->GetNode(path, slash_bits); in ParseEdge()
215 uint64_t slash_bits; in ParseEdge() local
216 if (!CanonicalizePath(&path, &slash_bits, &path_err)) in ParseEdge()
218 Node* n = state_->GetNode(path, slash_bits); in ParseEdge()
Dmanifest_parser.cc192 uint64_t slash_bits; // Unused because this only does lookup. in ParseDefault() local
193 if (!CanonicalizePath(&path, &slash_bits, &path_err)) in ParseDefault()
322 uint64_t slash_bits; in ParseEdge() local
323 if (!CanonicalizePath(&path, &slash_bits, &path_err)) in ParseEdge()
325 if (!state_->AddOut(edge, path, slash_bits)) { in ParseEdge()
355 uint64_t slash_bits; in ParseEdge() local
356 if (!CanonicalizePath(&path, &slash_bits, &path_err)) in ParseEdge()
358 state_->AddIn(edge, path, slash_bits); in ParseEdge()
387 uint64_t slash_bits; in ParseEdge() local
388 if (!CanonicalizePath(&dyndep, &slash_bits, err)) in ParseEdge()
[all …]
Dstate.cc103 Node* State::GetNode(StringPiece path, uint64_t slash_bits) { in GetNode() argument
107 node = new Node(path.AsString(), slash_bits); in GetNode()
137 void State::AddIn(Edge* edge, StringPiece path, uint64_t slash_bits) { in AddIn() argument
138 Node* node = GetNode(path, slash_bits); in AddIn()
143 bool State::AddOut(Edge* edge, StringPiece path, uint64_t slash_bits) { in AddOut() argument
144 Node* node = GetNode(path, slash_bits); in AddOut()
Dstate.h97 Node* GetNode(StringPiece path, uint64_t slash_bits);
101 void AddIn(Edge* edge, StringPiece path, uint64_t slash_bits);
102 bool AddOut(Edge* edge, StringPiece path, uint64_t slash_bits);
Dgraph.h39 Node(const string& path, uint64_t slash_bits) in Node()
41 slash_bits_(slash_bits), in Node()
83 uint64_t slash_bits);
84 uint64_t slash_bits() const { return slash_bits_; } in slash_bits() function
Dcanon_perftest.cc36 uint64_t slash_bits; in main() local
38 CanonicalizePath(buf, &len, &slash_bits, &err); in main()
Dutil.h60 bool CanonicalizePath(string* path, uint64_t* slash_bits, string* err);
61 bool CanonicalizePath(char* path, size_t* len, uint64_t* slash_bits,
Dutil.cc93 bool CanonicalizePath(string* path, uint64_t* slash_bits, string* err) { in CanonicalizePath() argument
99 if (!CanonicalizePath(str, &len, slash_bits, err)) in CanonicalizePath()
113 bool CanonicalizePath(char* path, size_t* len, uint64_t* slash_bits, in CanonicalizePath() argument
206 *slash_bits = bits; in CanonicalizePath()
208 *slash_bits = 0; in CanonicalizePath()
Dclparser.cc103 uint64_t slash_bits; in Parse() local
104 if (!CanonicalizePath(&normalized, &slash_bits, err)) in Parse()
Dgraph.cc471 string Node::PathDecanonicalized(const string& path, uint64_t slash_bits) { in PathDecanonicalized() argument
476 if (slash_bits & mask) in PathDecanonicalized()
596 uint64_t slash_bits; in LoadDepFile() local
597 if (!CanonicalizePath(const_cast<char*>(i->str_), &i->len_, &slash_bits, in LoadDepFile()
601 Node* node = state_->GetNode(*i, slash_bits); in LoadDepFile()
Dincludes_normalize-win32.cc191 uint64_t slash_bits; in Normalize() local
192 if (!CanonicalizePath(copy, &len, &slash_bits, err)) in Normalize()
Dclean.cc192 uint64_t slash_bits; in CleanTargets() local
194 if (!CanonicalizePath(&target_name, &slash_bits, &err)) { in CleanTargets()
Dmanifest_parser_test.cc271 EXPECT_EQ(1, node->slash_bits()); in TEST_F()
274 EXPECT_EQ(1, node->slash_bits()); in TEST_F()
324 EXPECT_EQ(0, node->slash_bits()); in TEST_F()
327 EXPECT_EQ(1, node->slash_bits()); in TEST_F()
Dninja.cc243 uint64_t slash_bits; // Unused because this path is only used for lookup. in RebuildManifest() local
244 if (!CanonicalizePath(&path, &slash_bits, err)) in RebuildManifest()
274 uint64_t slash_bits; in CollectTarget() local
275 if (!CanonicalizePath(&path, &slash_bits, err)) in CollectTarget()
302 "unknown target '" + Node::PathDecanonicalized(path, slash_bits) + "'"; in CollectTarget()
Dbuild.cc1100 uint64_t slash_bits; in ExtractDeps() local
1101 if (!CanonicalizePath(const_cast<char*>(i->str_), &i->len_, &slash_bits, in ExtractDeps()
1104 deps_nodes->push_back(state_->GetNode(*i, slash_bits)); in ExtractDeps()