clang-tools
3.9.0
|
This file implements a clang-rename tool that automatically finds and renames symbols in C++ code. More...
#include "../USRFindingAction.h"
#include "../RenamingAction.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Frontend/CommandLineSourceLoc.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Parse/ParseAST.h"
#include "clang/Parse/Parser.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/ReplacementsYaml.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/Support/Host.h"
#include <string>
Go to the source code of this file.
Macros | |
#define | CLANG_RENAME_VERSION "0.0.1" |
Functions | |
cl::OptionCategory | ClangRenameCategory ("Clang-rename options") |
static cl::opt< std::string > | NewName ("new-name", cl::desc("The new name to change the symbol to."), cl::cat(ClangRenameCategory)) |
static cl::opt< unsigned > | SymbolOffset ("offset", cl::desc("Locates the symbol by offset as opposed to <line>:<column>."), cl::cat(ClangRenameCategory)) |
static cl::opt< std::string > | OldName ("old-name", cl::desc("The fully qualified name of the symbol, if -offset is not used."), cl::cat(ClangRenameCategory)) |
static cl::opt< bool > | Inplace ("i", cl::desc("Overwrite edited <file>s."), cl::cat(ClangRenameCategory)) |
static cl::opt< bool > | PrintName ("pn", cl::desc("Print the found symbol's name prior to renaming to stderr."), cl::cat(ClangRenameCategory)) |
static cl::opt< bool > | PrintLocations ("pl", cl::desc("Print the locations affected by renaming to stderr."), cl::cat(ClangRenameCategory)) |
static cl::opt< std::string > | ExportFixes ("export-fixes", cl::desc("YAML file to store suggested fixes in."), cl::value_desc("filename"), cl::cat(ClangRenameCategory)) |
static void | PrintVersion () |
int | main (int argc, const char **argv) |
Variables | |
const char | RenameUsage [] |
This file implements a clang-rename tool that automatically finds and renames symbols in C++ code.
Definition in file ClangRename.cpp.
#define CLANG_RENAME_VERSION "0.0.1" |
Definition at line 82 of file ClangRename.cpp.
Referenced by PrintVersion().
cl::OptionCategory ClangRenameCategory | ( | "Clang-rename options" | ) |
Referenced by main().
|
static |
Referenced by main().
|
static |
Referenced by main().
int main | ( | int | argc, |
const char ** | argv | ||
) |
Definition at line 95 of file ClangRename.cpp.
References ClangRenameCategory(), DiagOpts, ExportFixes(), File, Files, Inplace(), NewName(), OldName(), PrevName, PrintLocations(), PrintName(), PrintVersion(), RenameUsage, Rewrite, and SymbolOffset().
|
static |
|
static |
|
static |
|
static |
Referenced by main().
|
static |
Definition at line 84 of file ClangRename.cpp.
References CLANG_RENAME_VERSION.
Referenced by main().
|
static |
const char RenameUsage[] |
Definition at line 90 of file ClangRename.cpp.
Referenced by main().