clang API Documentation
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/StringRef.h"
#include <set>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | clang::tooling::Range |
A source range independent of the SourceManager . More... | |
class | clang::tooling::Replacement |
A text replacement. More... | |
struct | clang::tooling::TranslationUnitReplacements |
Collection of Replacements generated from a single translation unit. More... | |
Namespaces | |
namespace | clang |
namespace | clang::tooling |
Typedefs | |
typedef std::set< Replacement > | clang::tooling::Replacements |
A set of Replacements. FIXME: Change to a vector and deduplicate in the RefactoringTool. | |
Functions | |
bool | clang::tooling::operator< (const Replacement &LHS, const Replacement &RHS) |
Less-than operator between two Replacements. | |
bool | clang::tooling::operator== (const Replacement &LHS, const Replacement &RHS) |
Equal-to operator between two Replacements. | |
bool | clang::tooling::applyAllReplacements (const Replacements &Replaces, Rewriter &Rewrite) |
Apply all replacements in Replaces to the Rewriter Rewrite . | |
bool | clang::tooling::applyAllReplacements (const std::vector< Replacement > &Replaces, Rewriter &Rewrite) |
Apply all replacements in Replaces to the Rewriter Rewrite . | |
std::string | clang::tooling::applyAllReplacements (StringRef Code, const Replacements &Replaces) |
Applies all replacements in Replaces to Code . | |
unsigned | clang::tooling::shiftedCodePosition (const Replacements &Replaces, unsigned Position) |
Calculates how a code Position is shifted when Replaces are applied. | |
unsigned | clang::tooling::shiftedCodePosition (const std::vector< Replacement > &Replaces, unsigned Position) |
Calculates how a code Position is shifted when Replaces are applied. | |
void | clang::tooling::deduplicate (std::vector< Replacement > &Replaces, std::vector< Range > &Conflicts) |
Removes duplicate Replacements and reports if Replacements conflict with one another. All Replacements are assumed to be in the same file. |