• Home
  • Raw
  • Download

Lines Matching refs:tooling

923   LLVMStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Preserve;  in getLLVMStyle()
1024 GoogleStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in getGoogleStyle()
1128 tooling::IncludeStyle::IBS_Preserve; in getGoogleStyle()
1161 tooling::IncludeStyle::IBS_Preserve; in getChromiumStyle()
1437 std::pair<tooling::Replacements, unsigned>
1442 tooling::Replacements Result; in analyze()
1451 tooling::Replacements &Result) { in requoteJSStringLiteral()
1473 auto Err = Result.add(tooling::Replacement( in requoteJSStringLiteral()
1525 std::pair<tooling::Replacements, unsigned>
1529 tooling::Replacements Result; in analyze()
1657 std::pair<tooling::Replacements, unsigned>
1662 tooling::Replacements Result; in analyze()
1671 tooling::Replacements &Result) { in insertTrailingCommas()
1704 tooling::Replacement(Env.getSourceManager(), Start, 0, ","))); in insertTrailingCommas()
1719 std::pair<tooling::Replacements, unsigned>
1888 tooling::Replacements generateFixes() { in generateFixes()
1889 tooling::Replacements Fixes; in generateFixes()
1907 Fixes.add(tooling::Replacement(Env.getSourceManager(), SR, "")); in generateFixes()
1942 std::pair<tooling::Replacements, unsigned>
1949 tooling::Replacements Result; in analyze()
2088 static bool affectsRange(ArrayRef<tooling::Range> Ranges, unsigned Start, in affectsRange()
2157 ArrayRef<tooling::Range> Ranges, StringRef FileName, in sortCppIncludes()
2158 StringRef Code, tooling::Replacements &Replaces, in sortCppIncludes()
2160 tooling::IncludeCategoryManager Categories(Style.IncludeStyle, FileName); in sortCppIncludes()
2201 Style.IncludeStyle.IncludeBlocks == tooling::IncludeStyle::IBS_Preserve) in sortCppIncludes()
2209 tooling::IncludeStyle::IBS_Regroup && in sortCppIncludes()
2225 auto Err = Replaces.add(tooling::Replacement( in sortCppIncludes()
2242 tooling::Replacements sortCppIncludes(const FormatStyle &Style, StringRef Code, in sortCppIncludes()
2243 ArrayRef<tooling::Range> Ranges, in sortCppIncludes()
2245 tooling::Replacements &Replaces, in sortCppIncludes()
2260 tooling::IncludeCategoryManager Categories(Style.IncludeStyle, FileName); in sortCppIncludes()
2279 (Style.IncludeStyle.IncludeBlocks == tooling::IncludeStyle::IBS_Merge || in sortCppIncludes()
2281 tooling::IncludeStyle::IBS_Regroup); in sortCppIncludes()
2338 ArrayRef<tooling::Range> Ranges, StringRef FileName, in sortJavaImports()
2339 StringRef Code, tooling::Replacements &Replaces) { in sortJavaImports()
2398 auto Err = Replaces.add(tooling::Replacement(FileName, Imports.front().Offset, in sortJavaImports()
2415 tooling::Replacements sortJavaImports(const FormatStyle &Style, StringRef Code, in sortJavaImports()
2416 ArrayRef<tooling::Range> Ranges, in sortJavaImports()
2418 tooling::Replacements &Replaces) { in sortJavaImports()
2477 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code, in sortIncludes()
2478 ArrayRef<tooling::Range> Ranges, in sortIncludes()
2480 tooling::Replacements Replaces; in sortIncludes()
2497 static llvm::Expected<tooling::Replacements>
2499 const tooling::Replacements &Replaces, in processReplacements()
2502 return tooling::Replacements(); in processReplacements()
2507 std::vector<tooling::Range> ChangedRanges = Replaces.getAffectedRanges(); in processReplacements()
2510 tooling::Replacements FormatReplaces = in processReplacements()
2516 llvm::Expected<tooling::Replacements>
2517 formatReplacements(StringRef Code, const tooling::Replacements &Replaces, in formatReplacements()
2522 std::vector<tooling::Range> Ranges, in formatReplacements()
2523 StringRef FileName) -> tooling::Replacements { in formatReplacements()
2534 std::vector<tooling::Range> Ranges, in formatReplacements()
2535 StringRef FileName) -> tooling::Replacements { in formatReplacements()
2543 inline bool isHeaderInsertion(const tooling::Replacement &Replace) { in isHeaderInsertion()
2549 inline bool isHeaderDeletion(const tooling::Replacement &Replace) { in isHeaderDeletion()
2554 tooling::Replacements
2555 fixCppIncludeInsertions(StringRef Code, const tooling::Replacements &Replaces, in fixCppIncludeInsertions()
2560 tooling::Replacements HeaderInsertions; in fixCppIncludeInsertions()
2562 tooling::Replacements Result; in fixCppIncludeInsertions()
2582 tooling::HeaderIncludes Includes(FileName, Code, Style.IncludeStyle); in fixCppIncludeInsertions()
2585 tooling::Replacements Replaces = in fixCppIncludeInsertions()
2615 auto Shifted = tooling::Replacement(FileName, NewOffset, 0, in fixCppIncludeInsertions()
2617 Result = Result.merge(tooling::Replacements(Shifted)); in fixCppIncludeInsertions()
2626 llvm::Expected<tooling::Replacements>
2627 cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces, in cleanupAroundReplacements()
2632 std::vector<tooling::Range> Ranges, in cleanupAroundReplacements()
2633 StringRef FileName) -> tooling::Replacements { in cleanupAroundReplacements()
2637 tooling::Replacements NewReplaces = in cleanupAroundReplacements()
2643 std::pair<tooling::Replacements, unsigned>
2645 ArrayRef<tooling::Range> Ranges, unsigned FirstStartColumn, in reformat()
2650 return {tooling::Replacements(), 0}; in reformat()
2652 return {tooling::Replacements(), 0}; in reformat()
2654 return {tooling::Replacements(), 0}; in reformat()
2656 typedef std::function<std::pair<tooling::Replacements, unsigned>( in reformat()
2693 tooling::Replacements Fixes; in reformat()
2696 std::pair<tooling::Replacements, unsigned> PassFixes = Passes[I](*Env); in reformat()
2706 tooling::calculateRangesAfterReplacements(Fixes, Ranges), in reformat()
2716 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, in reformat()
2717 ArrayRef<tooling::Range> Ranges, in reformat()
2727 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code, in cleanup()
2728 ArrayRef<tooling::Range> Ranges, in cleanup()
2732 return tooling::Replacements(); in cleanup()
2736 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, in reformat()
2737 ArrayRef<tooling::Range> Ranges, in reformat()
2746 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style, in fixNamespaceEndComments()
2748 ArrayRef<tooling::Range> Ranges, in fixNamespaceEndComments()
2755 tooling::Replacements sortUsingDeclarations(const FormatStyle &Style, in sortUsingDeclarations()
2757 ArrayRef<tooling::Range> Ranges, in sortUsingDeclarations()