• Home
  • Raw
  • Download

Lines Matching refs:FileName

1218                          ArrayRef<tooling::Range> Ranges, StringRef FileName,  in sortCppIncludes()  argument
1260 Replaces.insert(tooling::Replacement(FileName, Includes.front().Offset, in sortCppIncludes()
1270 IncludeCategoryManager(const FormatStyle &Style, StringRef FileName) in IncludeCategoryManager() argument
1271 : Style(Style), FileName(FileName) { in IncludeCategoryManager()
1272 FileStem = llvm::sys::path::stem(FileName); in IncludeCategoryManager()
1275 IsMainFile = FileName.endswith(".c") || FileName.endswith(".cc") || in IncludeCategoryManager()
1276 FileName.endswith(".cpp") || FileName.endswith(".c++") || in IncludeCategoryManager()
1277 FileName.endswith(".cxx") || FileName.endswith(".m") || in IncludeCategoryManager()
1278 FileName.endswith(".mm"); in IncludeCategoryManager()
1313 StringRef FileName; member in clang::format::__anon6a407afc0511::IncludeCategoryManager
1325 StringRef FileName, in sortCppIncludes() argument
1341 IncludeCategoryManager Categories(Style, FileName); in sortCppIncludes()
1367 sortCppIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, in sortCppIncludes()
1379 sortCppIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, Cursor); in sortCppIncludes()
1385 StringRef FileName, unsigned *Cursor) { in sortIncludes() argument
1390 return sortJavaScriptImports(Style, Code, Ranges, FileName); in sortIncludes()
1391 sortCppIncludes(Style, Code, Ranges, FileName, Replaces, Cursor); in sortIncludes()
1408 StringRef FileName = Replaces.begin()->getFilePath(); in processReplacements() local
1411 ProcessFunc(Style, *NewCode, ChangedRanges, FileName); in processReplacements()
1423 StringRef FileName) -> tooling::Replacements { in formatReplacements() argument
1424 return sortIncludes(Style, Code, Ranges, FileName); in formatReplacements()
1435 StringRef FileName) -> tooling::Replacements { in formatReplacements() argument
1436 return reformat(Style, Code, Ranges, FileName); in formatReplacements()
1467 unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, in getOffsetAfterHeaderGuardsAndComments() argument
1471 Environment::CreateVirtualEnvironment(Code, FileName, /*Ranges=*/{}); in getOffsetAfterHeaderGuardsAndComments()
1520 StringRef FileName = Replaces.begin()->getFilePath(); in fixCppIncludeInsertions() local
1521 IncludeCategoryManager Categories(Style, FileName); in fixCppIncludeInsertions()
1533 getOffsetAfterHeaderGuardsAndComments(FileName, Code, Style); in fixCppIncludeInsertions()
1591 Result.insert(tooling::Replacement(FileName, Offset, 0, NewInclude)); in fixCppIncludeInsertions()
1605 StringRef FileName) -> tooling::Replacements { in cleanupAroundReplacements() argument
1606 return cleanup(Style, Code, Ranges, FileName); in cleanupAroundReplacements()
1628 StringRef FileName, bool *IncompleteFormat) { in reformat() argument
1634 Environment::CreateVirtualEnvironment(Code, FileName, Ranges); in reformat()
1648 StringRef FileName) { in cleanup() argument
1650 Environment::CreateVirtualEnvironment(Code, FileName, Ranges); in cleanup()
1682 static FormatStyle::LanguageKind getLanguageByFileName(StringRef FileName) { in getLanguageByFileName() argument
1683 if (FileName.endswith(".java")) in getLanguageByFileName()
1685 if (FileName.endswith_lower(".js") || FileName.endswith_lower(".ts")) in getLanguageByFileName()
1687 if (FileName.endswith_lower(".proto") || in getLanguageByFileName()
1688 FileName.endswith_lower(".protodevel")) in getLanguageByFileName()
1690 if (FileName.endswith_lower(".td")) in getLanguageByFileName()
1695 FormatStyle getStyle(StringRef StyleName, StringRef FileName, in getStyle() argument
1701 Style.Language = getLanguageByFileName(FileName); in getStyle()
1726 SmallString<128> Path(FileName); in getStyle()