10#ifndef LLVM_CLANG_C_REWRITE_H
11#define LLVM_CLANG_C_REWRITE_H
38 const char *Replacement);
#define LLVM_CLANG_C_EXTERN_C_END
#define LLVM_CLANG_C_EXTERN_C_BEGIN
LLVM_CLANG_C_EXTERN_C_BEGIN typedef void * CXRewriter
CINDEX_LINKAGE void clang_CXRewriter_removeText(CXRewriter Rew, CXSourceRange ToBeRemoved)
Remove the specified range.
CINDEX_LINKAGE void clang_CXRewriter_dispose(CXRewriter Rew)
Free the given CXRewriter.
CINDEX_LINKAGE void clang_CXRewriter_replaceText(CXRewriter Rew, CXSourceRange ToBeReplaced, const char *Replacement)
Replace the specified range of characters in the input with the specified replacement.
CINDEX_LINKAGE void clang_CXRewriter_insertTextBefore(CXRewriter Rew, CXSourceLocation Loc, const char *Insert)
Insert the specified string at the specified location in the original buffer.
CINDEX_LINKAGE CXRewriter clang_CXRewriter_create(CXTranslationUnit TU)
Create CXRewriter.
CINDEX_LINKAGE int clang_CXRewriter_overwriteChangedFiles(CXRewriter Rew)
Save all changed files to disk.
CINDEX_LINKAGE void clang_CXRewriter_writeMainFileToStdOut(CXRewriter Rew)
Write out rewritten version of the main file to stdout.
struct CXTranslationUnitImpl * CXTranslationUnit
A single translation unit, which resides in an index.
Identifies a specific source location within a translation unit.
Identifies a half-open character range in the source code.