Lines Matching defs:NewPath
40 /// \brief Inserts 'NewPath' into this trie. \c ConsumedLength denotes
41 /// the number of \c NewPath's trailing characters already consumed during
54 void insert(StringRef NewPath, unsigned ConsumedLength = 0) {
57 if (llvm::sys::path::is_relative(NewPath))
60 // This is an empty leaf. Store NewPath and return.
61 Path = NewPath;
65 // This is a leaf, ignore duplicate entry if 'Path' equals 'NewPath'.
66 if (NewPath == Path)
74 StringRef(NewPath).drop_back(ConsumedLength)));
75 Children[Element].insert(NewPath, ConsumedLength + Element.size() + 1);
174 void FileMatchTrie::insert(StringRef NewPath) {
175 Root->insert(NewPath);