| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | Refactoring.cpp | 48 Rewriter Rewrite(Sources, DefaultLangOptions); in runAndSave() local 50 if (!applyAllReplacements(Rewrite)) { in runAndSave() 54 return saveRewrittenFiles(Rewrite); in runAndSave() 57 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements() argument 60 Rewrite.getSourceMgr().getFileManager(), FileToReplaces)) in applyAllReplacements() 65 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles() argument 66 return Rewrite.overwriteChangedFiles() ? 1 : 0; in saveRewrittenFiles() 71 Rewriter &Rewrite, StringRef Style) { in formatAndApplyAllReplacements() argument 72 SourceManager &SM = Rewrite.getSourceMgr(); in formatAndApplyAllReplacements() 77 Rewrite.getSourceMgr().getFileManager(), FileToReplaces)) { in formatAndApplyAllReplacements() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | FixItRewriter.cpp | 40 : Diags(Diags), Editor(SourceMgr, LangOpts), Rewrite(SourceMgr, LangOpts), in FixItRewriter() 52 const RewriteBuffer *RewriteBuf = Rewrite.getRewriteBufferFor(ID); in WriteFixedFile() 62 Rewriter &Rewrite; member in __anona322e2680111::RewritesReceiver 65 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) {} in RewritesReceiver() argument 68 Rewrite.InsertText(loc, text); in insert() 72 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace() 85 RewritesReceiver Rec(Rewrite); in WriteFixedFiles() 91 Rewrite.overwriteChangedFiles(); in WriteFixedFiles() 97 Rewrite.getSourceMgr().getFileEntryRefForID(I->first); in WriteFixedFiles()
|
| H A D | RewriteMacros.cpp | 92 Rewriter Rewrite; in RewriteMacrosInInput() local 93 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput() 94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput() 209 Rewrite.getRewriteBufferFor(SM.getMainFileID())) { in RewriteMacrosInInput()
|
| H A D | InclusionRewriter.cpp | 550 InclusionRewriter *Rewrite = new InclusionRewriter( in RewriteIncludesInInput() local 552 Rewrite->detectMainFileEOL(); in RewriteIncludesInInput() 554 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Rewrite)); in RewriteIncludesInInput() 570 Rewrite->handleModuleBegin(Tok); in RewriteIncludesInInput() 572 Rewrite->setPredefinesBuffer(SM.getBufferOrFake(PP.getPredefinesFileID())); in RewriteIncludesInInput() 573 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput() 574 Rewrite->Process(SM.getMainFileID(), SrcMgr::C_User); in RewriteIncludesInInput()
|
| H A D | RewriteObjC.cpp | 63 Rewriter Rewrite; member in __anone4fa00500111::RewriteObjC 216 int Size = Rewrite.getRangeSize(SrcRange); in ReplaceStmtWithRange() 229 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange() 242 if (!Rewrite.InsertText(Loc, Str, InsertAfter) || in InsertText() 252 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText() 638 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts()); in InitializeCommon() 1857 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf); in RewriteObjCTryStmt() 4610 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange()); in RewriteFunctionBodyOrGlobalInitializer() 4922 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|
| H A D | RewriteModernObjC.cpp | 65 Rewriter Rewrite; member in __anonceb1b5150111::RewriteModernObjC 266 int Size = Rewrite.getRangeSize(SrcRange); in ReplaceStmtWithRange() 279 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange() 292 if (!Rewrite.InsertText(Loc, Str, InsertAfter) || in InsertText() 302 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText() 710 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts()); in InitializeCommon() 5486 std::string Str = Rewrite.getRewrittenText(BE->getSourceRange()); in RewriteFunctionBodyOrGlobalInitializer() 5861 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/ |
| H A D | FixItRewriter.h | 70 Rewriter Rewrite; variable 97 return Rewrite.getRewriteBufferFor(ID) != nullptr; in IsModified() 103 iterator buffer_begin() { return Rewrite.buffer_begin(); } in buffer_begin() 104 iterator buffer_end() { return Rewrite.buffer_end(); } in buffer_end()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/ |
| H A D | Refactoring.h | 64 bool applyAllReplacements(Rewriter &Rewrite); 68 int saveRewrittenFiles(Rewriter &Rewrite); 94 Rewriter &Rewrite, StringRef Style = "file");
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | TextDiagnostics.cpp | 127 Rewriter Rewrite(SM, LO); in FlushDiagnosticsImpl() local 128 if (!applyAllReplacements(Repls, Rewrite)) { in FlushDiagnosticsImpl() 132 Rewrite.overwriteChangedFiles(); in FlushDiagnosticsImpl()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 68 bool Replacement::apply(Rewriter &Rewrite) const { in apply() 69 SourceManager &SM = Rewrite.getSourceMgr(); in apply() 81 bool RewriteSucceeded = !Rewrite.ReplaceText( in apply() 568 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) { in applyAllReplacements() argument 572 Result = I->apply(Rewrite) && Result; in applyAllReplacements() 592 Rewriter Rewrite(SourceMgr, LangOptions()); in applyAllReplacements() local 601 if (!Replace.apply(Rewrite)) in applyAllReplacements() 607 Rewrite.getEditBuffer(ID).write(OS); in applyAllReplacements()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InferAddressSpaces.cpp | 405 Value *Rewrite = TTI->rewriteIntrinsicWithAddressSpace(II, OldV, NewV); in rewriteIntrinsicOperands() local 406 if (!Rewrite) in rewriteIntrinsicOperands() 408 if (Rewrite != II) in rewriteIntrinsicOperands() 409 II->replaceAllUsesWith(Rewrite); in rewriteIntrinsicOperands() 628 Value *Rewrite = in cloneInstructionWithNewAddressSpace() local 630 if (Rewrite) { in cloneInstructionWithNewAddressSpace() 631 assert(Rewrite != II && "cannot modify this pointer operation in place"); in cloneInstructionWithNewAddressSpace() 632 return Rewrite; in cloneInstructionWithNewAddressSpace()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 127 bool apply(Rewriter &Rewrite) const; 322 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
|
| /freebsd-14.2/contrib/llvm-project/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 520 Rewriter Rewrite(Sources, LangOptions()); in format() local 521 tooling::applyAllReplacements(Replaces, Rewrite); in format() 523 if (Rewrite.overwriteChangedFiles()) in format() 535 Rewrite.getEditBuffer(ID).write(outs()); in format()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Template.h | 54 Rewrite, enumerator 118 return Kind == TemplateSubstitutionKind::Rewrite; in isRewrite() 224 assert(getKind() == TemplateSubstitutionKind::Rewrite); in addOuterTemplateArguments()
|
| /freebsd-14.2/lib/clang/libclang/ |
| H A D | Makefile | 467 SRCS_MIN+= Frontend/Rewrite/FixItRewriter.cpp 468 SRCS_MIN+= Frontend/Rewrite/FrontendActions.cpp 469 SRCS_MIN+= Frontend/Rewrite/HTMLPrint.cpp 470 SRCS_MIN+= Frontend/Rewrite/InclusionRewriter.cpp 471 SRCS_MIN+= Frontend/Rewrite/RewriteMacros.cpp 472 SRCS_MIN+= Frontend/Rewrite/RewriteTest.cpp 531 SRCS_MIN+= Rewrite/DeltaTree.cpp 532 SRCS_MIN+= Rewrite/HTMLRewrite.cpp 533 SRCS_MIN+= Rewrite/RewriteRope.cpp 534 SRCS_MIN+= Rewrite/Rewriter.cpp [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/ |
| H A D | module.modulemap | 147 module Clang_Rewrite { requires cplusplus umbrella "clang/Rewrite/Core" module * { export * } } 148 module Clang_RewriteFrontend { requires cplusplus umbrella "clang/Rewrite/Frontend" module * { expo…
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 1743 Rewriter &Rewrite; member in __anona0c783bd0411::RewritesReceiver 1746 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { } in RewritesReceiver() argument 1749 Rewrite.InsertText(loc, text); in insert() 1752 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
|
| /freebsd-14.2/contrib/traceroute/ |
| H A D | CHANGES | 87 - Rewrite source routing code to eliminate a number of problems on
|
| /freebsd-14.2/contrib/one-true-awk/ |
| H A D | FIXES | 71 Rewrite of fnematch to fix a number of issues, including
|
| /freebsd-14.2/contrib/openpam/ |
| H A D | HISTORY | 81 - ENHANCE: Rewrite the dynamic loader to improve readability and 127 - ENHANCE: Rewrite the policy parser to used openpam_readlinev(),
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-debuginfo-analyzer/ |
| H A D | README.txt | 45 Rewrite the unittests 'LFReaderTest' and 'CodeViewReaderTest'to eliminate
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | umountf2.sh | 100 * Rewrite and enhancements 1998-2001 Conrad Minshall -- [email protected]
|
| /freebsd-14.2/contrib/tcsh/ |
| H A D | WishList | 152 Rewrite the whole thing. It has taken to much beating over the
|
| /freebsd-14.2/crypto/openssl/ |
| H A D | NEWS.md | 329 * Rewrite of the packet construction code for "safer" packet handling 330 * Rewrite of the extension handling code 365 * Rewrite of devcrypto engine 598 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs 698 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs
|
| /freebsd-14.2/contrib/llvm-project/ |
| H A D | FREEBSD-Xlist | 66 clang/lib/Frontend/Rewrite/CMakeLists.txt 74 clang/lib/Rewrite/CMakeLists.txt
|