Lines Matching refs:Env

2125   ParensRemover(const Environment &Env, const FormatStyle &Style)  in ParensRemover()  argument
2126 : TokenAnalyzer(Env, Style) {} in ParensRemover()
2141 const auto &SourceMgr = Env.getSourceManager(); in removeParens()
2169 BracesInserter(const Environment &Env, const FormatStyle &Style) in BracesInserter() argument
2170 : TokenAnalyzer(Env, Style) {} in BracesInserter()
2185 const auto &SourceMgr = Env.getSourceManager(); in insertBraces()
2222 BracesRemover(const Environment &Env, const FormatStyle &Style) in BracesRemover() argument
2223 : TokenAnalyzer(Env, Style) {} in BracesRemover()
2238 const auto &SourceMgr = Env.getSourceManager(); in removeBraces()
2273 SemiRemover(const Environment &Env, const FormatStyle &Style) in SemiRemover() argument
2274 : TokenAnalyzer(Env, Style) {} in SemiRemover()
2297 const auto &SourceMgr = Env.getSourceManager(); in removeSemi()
2333 JavaScriptRequoter(const Environment &Env, const FormatStyle &Style) in JavaScriptRequoter() argument
2334 : TokenAnalyzer(Env, Style) {} in JavaScriptRequoter()
2374 Env.getSourceManager(), Start, Length, ReplacementText)); in requoteJSStringLiteral()
2421 Formatter(const Environment &Env, const FormatStyle &Style, in Formatter() argument
2423 : TokenAnalyzer(Env, Style), Status(Status) {} in Formatter()
2437 Env.getSourceManager(), Style, in analyze()
2440 Env.getSourceManager().getBufferData(Env.getFileID()), in analyze()
2444 Env.getSourceManager(), Whitespaces, Encoding, in analyze()
2448 Tokens.getKeywords(), Env.getSourceManager(), in analyze()
2453 /*FirstStartColumn=*/Env.getFirstStartColumn(), in analyze()
2454 /*NextStartColumn=*/Env.getNextStartColumn(), in analyze()
2455 /*LastStartColumn=*/Env.getLastStartColumn()); in analyze()
2563 TrailingCommaInserter(const Environment &Env, const FormatStyle &Style) in TrailingCommaInserter() argument
2564 : TokenAnalyzer(Env, Style) {} in TrailingCommaInserter()
2608 Env.getSourceManager().getSpellingColumnNumber(Start); in insertTrailingCommas()
2614 tooling::Replacement(Env.getSourceManager(), Start, 0, ","))); in insertTrailingCommas()
2624 Cleaner(const Environment &Env, const FormatStyle &Style) in Cleaner() argument
2625 : TokenAnalyzer(Env, Style), in Cleaner()
2626 DeletedTokens(FormatTokenLess(Env.getSourceManager())) {} in Cleaner()
2815 Fixes.add(tooling::Replacement(Env.getSourceManager(), SR, "")); in generateFixes()
2847 ObjCHeaderStyleGuesser(const Environment &Env, const FormatStyle &Style) in ObjCHeaderStyleGuesser() argument
2848 : TokenAnalyzer(Env, Style), IsObjC(false) {} in ObjCHeaderStyleGuesser()
2855 IsObjC = guessIsObjC(Env.getSourceManager(), AnnotatedLines, in analyze()
3653 auto Env = Environment::make(Code, FileName, Ranges, FirstStartColumn, in reformat() local
3655 if (!Env) in reformat()
3659 Formatter(*Env, Style, Status).process().first; in reformat()
3669 auto Env = Environment::make(Code, FileName, Ranges, FirstStartColumn, in reformat() local
3671 if (!Env) in reformat()
3680 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3681 return IntegerLiteralSeparatorFixer().process(Env, Expanded); in reformat()
3691 Passes.emplace_back([&, S = std::move(S)](const Environment &Env) { in reformat() argument
3692 return ParensRemover(Env, S).process(/*SkipAnnotation=*/true); in reformat()
3699 Passes.emplace_back([&, S = std::move(S)](const Environment &Env) { in reformat() argument
3700 return BracesInserter(Env, S).process(/*SkipAnnotation=*/true); in reformat()
3707 Passes.emplace_back([&, S = std::move(S)](const Environment &Env) { in reformat() argument
3708 return BracesRemover(Env, S).process(/*SkipAnnotation=*/true); in reformat()
3715 Passes.emplace_back([&, S = std::move(S)](const Environment &Env) { in reformat() argument
3716 return SemiRemover(Env, S).process(); in reformat()
3721 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3722 return NamespaceEndCommentsFixer(Env, Expanded).process(); in reformat()
3727 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3728 return UsingDeclarationsSorter(Env, Expanded).process(); in reformat()
3734 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3735 return DefinitionBlockSeparator(Env, Expanded).process(); in reformat()
3741 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3742 return ObjCPropertyAttributeOrderFixer(Env, Expanded).process(); in reformat()
3748 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3749 return JavaScriptRequoter(Env, Expanded).process(/*SkipAnnotation=*/true); in reformat()
3753 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3754 return Formatter(Env, Expanded, Status).process(); in reformat()
3759 Passes.emplace_back([&](const Environment &Env) { in reformat() argument
3760 return TrailingCommaInserter(Env, Expanded).process(); in reformat()
3768 std::pair<tooling::Replacements, unsigned> PassFixes = Passes[I](*Env); in reformat()
3776 Env = Environment::make( in reformat()
3780 if (!Env) in reformat()
3825 auto Env = Environment::make(Code, FileName, Ranges); in cleanup() local
3826 if (!Env) in cleanup()
3828 return Cleaner(*Env, Style).process().first; in cleanup()
3845 auto Env = Environment::make(Code, FileName, Ranges); in fixNamespaceEndComments() local
3846 if (!Env) in fixNamespaceEndComments()
3848 return NamespaceEndCommentsFixer(*Env, Style).process().first; in fixNamespaceEndComments()
3855 auto Env = Environment::make(Code, FileName, Ranges); in sortUsingDeclarations() local
3856 if (!Env) in sortUsingDeclarations()
3858 return UsingDeclarationsSorter(*Env, Style).process().first; in sortUsingDeclarations()
3952 Environment Env(Code, NonEmptyFileName, /*Ranges=*/{}); in guessLanguage() local
3953 ObjCHeaderStyleGuesser Guesser(Env, getLLVMStyle()); in guessLanguage()