#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
#include <set>
#include <string>
#include <system_error>
#include <vector>
Go to the source code of this file.
|
| | clang |
| | /file This file defines classes for searching and anlyzing source code clones.
|
| |
| | clang::tooling |
| |
|
| 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...
|
| |
| llvm::Expected< std::string > | clang::tooling::applyAllReplacements (StringRef Code, const Replacements &Replaces) |
| | Applies all replacements in Replaces to Code. 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 (FileManager &FileMgr, const std::map< std::string, Replacements > &FileToReplaces) |
| | If there are multiple <File, Replacements> pairs with the same file entry, we only keep one pair and discard the rest. More...
|
| |