Lines Matching refs:NewPath
45 /// Inserts 'NewPath' into this trie. \c ConsumedLength denotes
46 /// the number of \c NewPath's trailing characters already consumed during
59 void insert(StringRef NewPath, unsigned ConsumedLength = 0) {
62 if (llvm::sys::path::is_relative(NewPath))
65 // This is an empty leaf. Store NewPath and return.
66 Path = NewPath;
70 // This is a leaf, ignore duplicate entry if 'Path' equals 'NewPath'.
71 if (NewPath == Path)
79 StringRef(NewPath).drop_back(ConsumedLength)));
80 Children[Element].insert(NewPath, ConsumedLength + Element.size() + 1);
180 void FileMatchTrie::insert(StringRef NewPath) {
181 Root->insert(NewPath);