• Home
  • Raw
  • Download

Lines Matching refs:IncludeName

171 inline StringRef trimInclude(StringRef IncludeName) {  in trimInclude()  argument
172 return IncludeName.trim("\"<>"); in trimInclude()
208 int IncludeCategoryManager::getIncludePriority(StringRef IncludeName, in getIncludePriority() argument
212 if (CategoryRegexs[i].match(IncludeName)) { in getIncludePriority()
216 if (CheckMainHeader && IsMainFile && Ret > 0 && isMainHeader(IncludeName)) in getIncludePriority()
221 int IncludeCategoryManager::getSortIncludePriority(StringRef IncludeName, in getSortIncludePriority() argument
225 if (CategoryRegexs[i].match(IncludeName)) { in getSortIncludePriority()
231 if (CheckMainHeader && IsMainFile && Ret > 0 && isMainHeader(IncludeName)) in getSortIncludePriority()
235 bool IncludeCategoryManager::isMainHeader(StringRef IncludeName) const { in isMainHeader()
236 if (!IncludeName.startswith("\"")) in isMainHeader()
239 IncludeName = in isMainHeader()
240 IncludeName.drop_front(1).drop_back(1); // remove the surrounding "" or <> in isMainHeader()
243 StringRef HeaderStem = llvm::sys::path::stem(IncludeName); in isMainHeader()
343 HeaderIncludes::insert(llvm::StringRef IncludeName, bool IsAngled) const { in insert() argument
344 assert(IncludeName == trimInclude(IncludeName)); in insert()
348 auto It = ExistingIncludes.find(IncludeName); in insert()
355 std::string(llvm::formatv(IsAngled ? "<{0}>" : "\"{0}\"", IncludeName)); in insert()
383 tooling::Replacements HeaderIncludes::remove(llvm::StringRef IncludeName, in remove() argument
385 assert(IncludeName == trimInclude(IncludeName)); in remove()
387 auto Iter = ExistingIncludes.find(IncludeName); in remove()