clang.c.Rewrite

Undocumented in source.

Public Imports

clang.c.Index
public import clang.c.Index;
Undocumented in source.

Members

Aliases

CXRewriter
alias CXRewriter = void*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

clang_CXRewriter_create
CXRewriter clang_CXRewriter_create(CXTranslationUnit TU)

Create CXRewriter.

clang_CXRewriter_dispose
void clang_CXRewriter_dispose(CXRewriter Rew)

Free the given CXRewriter.

clang_CXRewriter_insertTextBefore
void clang_CXRewriter_insertTextBefore(CXRewriter Rew, CXSourceLocation Loc, const(char)* Insert)

Insert the specified string at the specified location in the original buffer.

clang_CXRewriter_overwriteChangedFiles
int clang_CXRewriter_overwriteChangedFiles(CXRewriter Rew)

Save all changed files to disk. Returns 1 if any files were not saved successfully, returns 0 otherwise.

clang_CXRewriter_removeText
void clang_CXRewriter_removeText(CXRewriter Rew, CXSourceRange ToBeRemoved)

Remove the specified range.

clang_CXRewriter_replaceText
void clang_CXRewriter_replaceText(CXRewriter Rew, CXSourceRange ToBeReplaced, const(char)* Replacement)

Replace the specified range of characters in the input with the specified replacement.

clang_CXRewriter_writeMainFileToStdOut
void clang_CXRewriter_writeMainFileToStdOut(CXRewriter Rew)

Write out rewritten version of the main file to stdout.

Meta