|
clang
5.0.0
|
#include "clang/Tooling/Core/Replacement.h"#include "clang/Basic/Diagnostic.h"#include "clang/Basic/DiagnosticIDs.h"#include "clang/Basic/DiagnosticOptions.h"#include "clang/Basic/FileManager.h"#include "clang/Basic/SourceManager.h"#include "clang/Lex/Lexer.h"#include "clang/Rewrite/Core/Rewriter.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/Support/FileSystem.h"#include "llvm/Support/Path.h"#include "llvm/Support/raw_os_ostream.h"Go to the source code of this file.
Namespaces | |
| clang | |
| /file This file defines classes for searching and anlyzing source code clones. | |
| clang::tooling | |
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... | |
| static int | clang::tooling::getRangeSize (const SourceManager &Sources, const CharSourceRange &Range, const LangOptions &LangOpts) |
| static std::string | clang::tooling::getReplacementErrString (replacement_error Err) |
| static std::vector< Range > | clang::tooling::combineAndSortRanges (std::vector< Range > Ranges) |
| std::vector< Range > | clang::tooling::calculateRangesAfterReplacements (const Replacements &Replaces, const std::vector< Range > &Ranges) |
Calculates the new ranges after Replaces are applied. 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::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... | |
Variables | |
| static const char *const | clang::tooling::InvalidLocation = "" |
| int Delta |
Definition at line 407 of file Replacement.cpp.
Referenced by isCompatibleWithFields(), and clang::tooling::Replacements::merge().
| int DeltaFirst |
Definition at line 412 of file Replacement.cpp.
| const StringRef FilePath |
Definition at line 416 of file Replacement.cpp.
Referenced by clang::ASTWriter::AddPath(), computeRelativePath(), clang::driver::CudaInstallationDetector::CudaInstallationDetector(), llvm::yaml::MappingTraits< clang::tooling::Replacement >::NormalizedReplacement::denormalize(), clang::ASTWriter::EmitRecordWithPath(), FindVisualStudioExecutable(), clang::tooling::formatAndApplyAllReplacements(), clang::FileManager::getBufferForFile(), clang::tooling::FixedCompilationDatabase::getCompileCommands(), clang::FileManager::getNoncachedStatValue(), and clang::driver::toolchains::NaClToolChain::NaClToolChain().
| unsigned Length |
Definition at line 418 of file Replacement.cpp.
Referenced by clang::Sema::ActOnNumericConstant(), clang::Sema::ActOnOMPArraySectionExpr(), clang::Sema::BuildPredefinedExpr(), CheckArrayExpressionDoesNotReferToUnitySize(), CheckArrayExpressionDoesNotReferToWholeSize(), collectSubRegionBindings(), clang::SizeOfPackExpr::Create(), llvm::yaml::MappingTraits< clang::tooling::Replacement >::NormalizedReplacement::denormalize(), clang::CodeGen::CodeGenFunction::EmitOMPArraySectionExpr(), clang::comments::Token::getEndLocation(), clang::edit::Commit::Edit::getFileRange(), clang::edit::Commit::Edit::getInsertFromRange(), clang::comments::Token::getLength(), clang::SizeOfPackExpr::getPackLength(), getSpellingSlow(), clang::SourceManager::isInSLocAddrSpace(), clang::SizeOfPackExpr::isPartiallySubstituted(), clang::comments::TextTokenRetokenizer::lexDelimitedSeq(), clang::comments::TextTokenRetokenizer::lexWord(), clang::OMPArraySectionExpr::OMPArraySectionExpr(), clang::format::CommaSeparatedList::precomputeFormattingInfos(), printWordWrapped(), clang::APValue::LV::resizePath(), clang::APValue::MemberPointerData::resizePath(), and clang::comments::Token::setLength().
| bool MergeSecond |
Definition at line 403 of file Replacement.cpp.
Definition at line 417 of file Replacement.cpp.
Referenced by clang::tooling::Replacements::getShiftedCodePosition().
| std::string Text |
Definition at line 419 of file Replacement.cpp.
1.8.6