clang  3.9.0
Classes | Namespaces | Typedefs | Functions
Replacement.h File Reference
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include <map>
#include <set>
#include <string>
#include <vector>
Include dependency graph for Replacement.h:
This graph shows which files directly or indirectly include this file:

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

 clang
 Dataflow Directional Tag Classes.
 
 clang::tooling
 

Typedefs

typedef std::set< Replacementclang::tooling::Replacements
 A set of Replacements. More...
 

Functions

bool clang::tooling::operator< (const Replacement &LHS, const Replacement &RHS)
 Less-than operator between two Replacements. More...
 
bool clang::tooling::operator== (const Replacement &LHS, const Replacement &RHS)
 Equal-to operator between two Replacements. More...
 
bool clang::tooling::applyAllReplacements (const Replacements &Replaces, Rewriter &Rewrite)
 Apply all replacements in Replaces to the Rewriter Rewrite. More...
 
bool clang::tooling::applyAllReplacements (const std::vector< Replacement > &Replaces, Rewriter &Rewrite)
 Apply all replacements in Replaces to the Rewriter Rewrite. More...
 
llvm::Expected< std::string > clang::tooling::applyAllReplacements (StringRef Code, const Replacements &Replaces)
 Applies all replacements in Replaces to Code. More...
 
unsigned clang::tooling::shiftedCodePosition (const Replacements &Replaces, unsigned Position)
 Calculates how a code Position is shifted when Replaces are applied. More...
 
unsigned clang::tooling::shiftedCodePosition (const std::vector< Replacement > &Replaces, unsigned Position)
 Calculates how a code Position is shifted when Replaces are applied. More...
 
void clang::tooling::deduplicate (std::vector< Replacement > &Replaces, std::vector< Range > &Conflicts)
 Removes duplicate Replacements and reports if Replacements conflict with one another. More...
 
std::vector< Range > clang::tooling::calculateChangedRanges (const Replacements &Replaces)
 Calculates the ranges in a single file that are affected by the Replacements. More...
 
std::vector< Range > clang::tooling::calculateRangesAfterReplacements (const Replacements &Replaces, const std::vector< Range > &Ranges)
 Calculates the new ranges after Replaces are applied. More...
 
std::map< std::string,
Replacements > 
clang::tooling::groupReplacementsByFile (const Replacements &Replaces)
 Groups a random set of replacements by file path. More...
 
Replacements clang::tooling::mergeReplacements (const Replacements &First, const Replacements &Second)
 Merges two sets of replacements with the second set referring to the code after applying the first set. More...