/third_party/ninja/src/ |
D | util_test.cc | 180 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 …]
|
D | dyndep_parser.cc | 117 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()
|
D | manifest_parser.cc | 192 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 …]
|
D | state.cc | 103 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()
|
D | state.h | 97 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);
|
D | graph.h | 39 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
|
D | canon_perftest.cc | 36 uint64_t slash_bits; in main() local 38 CanonicalizePath(buf, &len, &slash_bits, &err); in main()
|
D | util.h | 60 bool CanonicalizePath(string* path, uint64_t* slash_bits, string* err); 61 bool CanonicalizePath(char* path, size_t* len, uint64_t* slash_bits,
|
D | util.cc | 93 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()
|
D | clparser.cc | 103 uint64_t slash_bits; in Parse() local 104 if (!CanonicalizePath(&normalized, &slash_bits, err)) in Parse()
|
D | graph.cc | 471 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()
|
D | includes_normalize-win32.cc | 191 uint64_t slash_bits; in Normalize() local 192 if (!CanonicalizePath(copy, &len, &slash_bits, err)) in Normalize()
|
D | clean.cc | 192 uint64_t slash_bits; in CleanTargets() local 194 if (!CanonicalizePath(&target_name, &slash_bits, &err)) { in CleanTargets()
|
D | manifest_parser_test.cc | 271 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()
|
D | ninja.cc | 243 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()
|
D | build.cc | 1100 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()
|