clang
10.0.0svn
|
This file implements functions declared in Format.h. More...
#include "clang/Format/Format.h"
#include "AffectedRangeManager.h"
#include "ContinuationIndenter.h"
#include "FormatInternal.h"
#include "FormatTokenLexer.h"
#include "NamespaceEndCommentsFixer.h"
#include "SortJavaScriptImports.h"
#include "TokenAnalyzer.h"
#include "TokenAnnotator.h"
#include "UnwrappedLineFormatter.h"
#include "UnwrappedLineParser.h"
#include "UsingDeclarationsSorter.h"
#include "WhitespaceManager.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/Inclusions/HeaderIncludes.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Regex.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/YAMLTraits.h"
#include <algorithm>
#include <memory>
#include <mutex>
#include <string>
#include <unordered_map>
Go to the source code of this file.
Namespaces | |
llvm | |
Specialize PointerLikeTypeTraits to allow LazyGenerationalUpdatePtr to be placed into a PointerUnion. | |
llvm::yaml | |
clang | |
Dataflow Directional Tag Classes. | |
clang::format | |
clang::format::internal | |
Macros | |
#define | DEBUG_TYPE "format-formatter" |
Functions | |
const std::error_category & | clang::format::getParseCategory () |
std::error_code | clang::format::make_error_code (ParseError e) |
llvm::Error | clang::format::make_string_error (const llvm::Twine &Message) |
static FormatStyle | clang::format::expandPresets (const FormatStyle &Style) |
FormatStyle | clang::format::getLLVMStyle (FormatStyle::LanguageKind Language=FormatStyle::LanguageKind::LK_Cpp) |
Returns a format style complying with the LLVM coding standards: http://llvm.org/docs/CodingStandards.html. More... | |
FormatStyle | clang::format::getGoogleStyle (FormatStyle::LanguageKind Language) |
Returns a format style complying with one of Google's style guides: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml. More... | |
FormatStyle | clang::format::getChromiumStyle (FormatStyle::LanguageKind Language) |
Returns a format style complying with Chromium's style guide: http://www.chromium.org/developers/coding-style. More... | |
FormatStyle | clang::format::getMozillaStyle () |
Returns a format style complying with Mozilla's style guide: https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style. More... | |
FormatStyle | clang::format::getWebKitStyle () |
Returns a format style complying with Webkit's style guide: http://www.webkit.org/coding/coding-style.html. More... | |
FormatStyle | clang::format::getGNUStyle () |
Returns a format style complying with GNU Coding Standards: http://www.gnu.org/prep/standards/standards.html. More... | |
FormatStyle | clang::format::getMicrosoftStyle (FormatStyle::LanguageKind Language) |
Returns a format style complying with Microsoft style guide: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2017. More... | |
FormatStyle | clang::format::getNoStyle () |
Returns style indicating formatting should be not applied at all. More... | |
bool | clang::format::getPredefinedStyle (StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) |
Gets a predefined style for the specified language by name. More... | |
std::error_code | clang::format::parseConfiguration (StringRef Text, FormatStyle *Style) |
Parse configuration from YAML-formatted text. More... | |
std::string | clang::format::configurationAsText (const FormatStyle &Style) |
Gets configuration in a YAML string. More... | |
static bool | clang::format::affectsRange (ArrayRef< tooling::Range > Ranges, unsigned Start, unsigned End) |
static std::pair< unsigned, unsigned > | clang::format::FindCursorIndex (const SmallVectorImpl< IncludeDirective > &Includes, const SmallVectorImpl< unsigned > &Indices, unsigned Cursor) |
std::string | clang::format::replaceCRLF (const std::string &Code) |
static void | clang::format::sortCppIncludes (const FormatStyle &Style, const SmallVectorImpl< IncludeDirective > &Includes, ArrayRef< tooling::Range > Ranges, StringRef FileName, StringRef Code, tooling::Replacements &Replaces, unsigned *Cursor) |
tooling::Replacements | clang::format::sortCppIncludes (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName, tooling::Replacements &Replaces, unsigned *Cursor) |
static unsigned | clang::format::findJavaImportGroup (const FormatStyle &Style, StringRef ImportIdentifier) |
static void | clang::format::sortJavaImports (const FormatStyle &Style, const SmallVectorImpl< JavaImportDirective > &Imports, ArrayRef< tooling::Range > Ranges, StringRef FileName, StringRef Code, tooling::Replacements &Replaces) |
tooling::Replacements | clang::format::sortJavaImports (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName, tooling::Replacements &Replaces) |
bool | clang::format::isMpegTS (StringRef Code) |
bool | clang::format::isLikelyXml (StringRef Code) |
tooling::Replacements | clang::format::sortIncludes (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName, unsigned *Cursor=nullptr) |
Returns the replacements necessary to sort all #include blocks that are affected by Ranges . More... | |
template<typename T > | |
static llvm::Expected< tooling::Replacements > | clang::format::processReplacements (T ProcessFunc, StringRef Code, const tooling::Replacements &Replaces, const FormatStyle &Style) |
llvm::Expected< tooling::Replacements > | clang::format::formatReplacements (StringRef Code, const tooling::Replacements &Replaces, const FormatStyle &Style) |
Returns the replacements corresponding to applying and formatting Replaces on success; otheriwse, return an llvm::Error carrying llvm::StringError. More... | |
llvm::Expected< tooling::Replacements > | clang::format::cleanupAroundReplacements (StringRef Code, const tooling::Replacements &Replaces, const FormatStyle &Style) |
Returns the replacements corresponding to applying Replaces and cleaning up the code after that on success; otherwise, return an llvm::Error carrying llvm::StringError. More... | |
std::pair< tooling::Replacements, unsigned > | clang::format::internal::reformat (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, unsigned FirstStartColumn, unsigned NextStartColumn, unsigned LastStartColumn, StringRef FileName, FormattingAttemptStatus *Status) |
Reformats the given Ranges in the code fragment Code . More... | |
tooling::Replacements | clang::format::reformat (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>", FormattingAttemptStatus *Status=nullptr) |
Reformats the given Ranges in Code . More... | |
tooling::Replacements | clang::format::cleanup (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>") |
Clean up any erroneous/redundant code in the given Ranges in Code . More... | |
tooling::Replacements | clang::format::reformat (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName, bool *IncompleteFormat) |
Same as above, except if IncompleteFormat is non-null, its value will be set to true if any of the affected ranges were not formatted due to a non-recoverable syntax error. More... | |
tooling::Replacements | clang::format::fixNamespaceEndComments (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>") |
Fix namespace end comments in the given Ranges in Code . More... | |
tooling::Replacements | clang::format::sortUsingDeclarations (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>") |
Sort consecutive using declarations in the given Ranges in Code . More... | |
LangOptions | clang::format::getFormattingLangOpts (const FormatStyle &Style=getLLVMStyle()) |
Returns the LangOpts that the formatter expects you to set. More... | |
static FormatStyle::LanguageKind | clang::format::getLanguageByFileName (StringRef FileName) |
FormatStyle::LanguageKind | clang::format::guessLanguage (StringRef FileName, StringRef Code) |
llvm::Expected< FormatStyle > | clang::format::getStyle (StringRef StyleName, StringRef FileName, StringRef FallbackStyle, StringRef Code="", llvm::vfs::FileSystem *FS=nullptr) |
Construct a FormatStyle based on StyleName . More... | |
This file implements functions declared in Format.h.
This will be split into separate files as we go.
Definition in file Format.cpp.
#define DEBUG_TYPE "format-formatter" |
Definition at line 47 of file Format.cpp.
std::vector<StringRef> AssociatedCommentLines |
Definition at line 1818 of file Format.cpp.
int Category |
Definition at line 1810 of file Format.cpp.
Referenced by clang::Sema::ActOnStartCategoryInterface(), clang::Sema::CodeCompleteObjCPropertyGetter(), clang::Sema::CodeCompleteObjCPropertySetter(), clang::tooling::CommonOptionsParser::CommonOptionsParser(), clang::cross_tu::IndexError::convertToErrorCode(), clang::tooling::CommonOptionsParser::create(), clang::tooling::ArgumentsAdjustingCompilations::getAllCompileCommands(), clang::ento::PathDiagnostic::getCategory(), getStableLevel(), hasWrittenStorageAttribute(), clang::tooling::HeaderIncludes::HeaderIncludes(), clang::tooling::IncludeCategoryManager::IncludeCategoryManager(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), clang::cross_tu::IndexError::log(), LookupMemberExpr(), clang::CodeGen::CodeGenModule::setFunctionLinkage(), clang::InitializationSequence::steps(), clang::ASTNodeImporter::VisitObjCCategoryImplDecl(), and clang::tooling::ToolExecutorPlugin::~ToolExecutorPlugin().
StringRef Filename |
Definition at line 1807 of file Format.cpp.
Referenced by clang::InMemoryModuleCache::addBuiltPCM(), adjustFilenameForRelocatableAST(), clang::SourceManager::AllocateLoadedSLocEntries(), clang::FrontendAction::BeginSourceFile(), clang::PrecompiledPreamble::Build(), clang::tooling::dependencies::CachedFileSystemEntry::CachedFileSystemEntry(), clang::Preprocessor::checkModuleIsAvailable(), clang::CodeGen::CoverageMappingModuleGen::CoverageMappingModuleGen(), clang::FixItAction::CreateASTConsumer(), CreateSLocExpansionAbbrev(), clang::ModuleMap::diagnoseHeaderInclusion(), clang::CodeGen::CodeGenFunction::EmitCheckSourceLocation(), clang::TextDiagnostic::emitCodeContext(), clang::BackendConsumer::EmitOptimizationMessage(), EnableCodeCompletion(), EvaluateHasIncludeCommon(), clang::LineEntry::get(), clang::tooling::dependencies::DependencyScanningFilesystemSharedCache::get(), clang::SrcMgr::FileInfo::get(), clang::FileManager::getBufferForFile(), clang::DependencyCollector::getDependencies(), getFileName(), clang::PresumedLoc::getFilename(), clang::FileManager::getFileRef(), clang::CompilerInstance::getFrontendTimer(), clang::driver::toolchains::CudaToolChain::getInputFilename(), clang::SrcMgr::FileInfo::getName(), clang::FileManager::getOptionalDirectoryRef(), clang::SourceManager::getPresumedLoc(), getPrivateModuleMap(), getPublicModuleMap(), clang::FileManager::getVirtualFile(), clang::Preprocessor::HandlePragmaDependency(), clang::HeaderMapImpl::HeaderMapImpl(), clang::ASTReader::ImportedSubmodule::ImportedSubmodule(), clang::Rewriter::IncreaseIndentation(), clang::ModuleDependencyCollector::insertSeen(), clang::DirectoryLookup::isIndexHeaderMap(), isSpecialFilename(), clang::SourceManager::isWrittenInBuiltinFile(), clang::SourceManager::isWrittenInCommandLineFile(), clang::SourceManager::isWrittenInScratchSpace(), clang::HeaderSearch::LookupFile(), MakeCLOutputFilename(), clang::BackendConsumer::MisExpectDiagHandler(), needModuleLookup(), clang::DependencyFileGenerator::needSystemDependencies(), nodeHasBugReport(), clang::tooling::dependencies::DependencyScanningWorkerFilesystem::openFileForRead(), ParseAArch64BranchProtection(), clang::TextDiagnostic::printDiagnosticMessage(), clang::serialization::reader::HeaderFileInfoTrait::ReadData(), clang::serialization::reader::ASTDeclContextNameLookupTrait::ReadDataInto(), clang::ASTReader::ReadPath(), clang::ASTReader::resolvePendingMacro(), clang::Preprocessor::setCounterValue(), clang::HeaderSearch::SetExternalSource(), clang::format::sortCppIncludes(), clang::tooling::dependencies::DependencyScanningWorkerFilesystem::status(), clang::ChainedASTReaderListener::takeSecond(), clang::BackendConsumer::UnsupportedDiagHandler(), clang::FixItRewriter::WriteFixedFiles(), and clang::tooling::dependencies::DependencyConsumer::~DependencyConsumer().
StringRef Identifier |
Definition at line 1815 of file Format.cpp.
Referenced by clang::UnqualifiedId::clear(), clang::CodeGen::CGDebugInfo::completeUnusedClass(), DetectEOL(), clang::OffsetOfNode::getFieldName(), clang::DependentTemplateName::getIdentifier(), getTagForRecord(), getTypeIdentifier(), hasDefaultSetterName(), clang::Preprocessor::IncrementPasteCounter(), isNSStringType(), isTrivialSingleTokenExpansion(), clang::format::FormatTokenLexer::lex(), clang::Preprocessor::LexOnOffSwitch(), clang::analyze_format_string::FormatSpecifier::namedTypeToLengthModifier(), clang::tooling::ReplaceNodeWithTemplate::run(), clang::UnqualifiedId::setIdentifier(), clang::UnqualifiedId::setLiteralOperatorId(), and clang::format::sortJavaImports().
bool IsStatic |
Definition at line 1819 of file Format.cpp.
Referenced by constructHexagonLinkArgs(), clang::driver::tools::nacltools::Linker::ConstructJob(), clang::driver::tools::gnutools::Linker::ConstructJob(), clang::Sema::CorrectDelayedTyposInExpr(), clang::interp::Program::createGlobal(), and clang::format::sortJavaImports().
unsigned Offset |
Definition at line 1809 of file Format.cpp.
Referenced by clang::tooling::Replacements::add(), clang::ModuleMap::addAdditionalModuleMapFile(), clang::index::FileIndexRecord::addDeclOccurence(), clang::CodeGen::CodeGenModule::addDeferredVTable(), clang::ASTUnit::addFileLevelDecl(), clang::LineTableInfo::AddLineNote(), clang::ASTUnit::addTopLevelDecl(), clang::Lexer::AdvanceToTokenCharacter(), TokenCollector::Builder::build(), calculateOffset(), clang::CodeGen::CGObjCRuntime::CGObjCRuntime(), checkFormatStringExpr(), clang::format::BreakableStringLiteral::compressWhitespace(), clang::CodeGen::CodeGenModule::computeNonVirtualBaseClassOffset(), clang::minimize_source_to_dependency_directives::computeSkippedRanges(), ComputeVMIClassTypeInfoFlags(), clang::driver::tools::Clang::ConstructJob(), ConvertBackendLocation(), clang::arcmt::MigrateSourceAction::CreateASTConsumer(), createRuntimeShuffleFunction(), CreateSLocExpansionAbbrev(), llvm::yaml::MappingTraits< clang::tooling::Replacement >::NormalizedReplacement::denormalize(), clang::Sema::Diag(), DiagnoseReinterpretUpDownCast(), clang::ASTRecordWriter::Emit(), emitAddrOfZeroSizeField(), clang::CodeGen::CodeGenFunction::EmitAsanPrologueOrEpilogue(), clang::interp::ByteCodeEmitter::emitLabel(), emitNumThreadsForTargetDirective(), emitRTtypeidCall(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsOutlinedFunction(), EmitX86_64VAArgFromMemory(), clang::RopePieceBTree::empty(), evaluateCDTSize(), EvaluatePointer(), findBeginningOfLine(), clang::ASTUnit::findFileRegionDecls(), FindIvarInterface(), clang::Lexer::findLocationAfterToken(), clang::LineTableInfo::FindNearestLineEntry(), clang::HeaderSearch::FirstTimeLexingFile(), clang::ASTReader::forEachImportedKeyDecl(), clang::SrcMgr::SLocEntry::get(), clang::CodeGen::CodeGenFunction::GetAddressOfDirectBaseInCompleteClass(), clang::tooling::Replacements::getAffectedRanges(), GetAlignOfExpr(), getAsInt32(), clang::SourceManager::getBufferData(), clang::RawCommentList::getCommentEndOffset(), clang::SourceManager::getComposedLoc(), clang::ASTContext::getDeclAlign(), clang::ASTWriter::getDeclID(), clang::SourceManager::getDecomposedExpansionLoc(), clang::SourceManager::getDecomposedSpellingLoc(), GetDiagInfo(), clang::CodeGen::ABIArgInfo::getDirect(), getFieldSize(), GetGCAttrTypeForType(), clang::ExternalASTSource::getGeneration(), clang::VTableComponent::getGlobalDecl(), clang::format::FormatTokenLexer::getKeywords(), clang::interp::InterpFrame::getLocal(), clang::NestedNameSpecifierLoc::getLocalSourceRange(), clang::StringLiteral::getLocationOfByte(), clang::Lexer::getLocForEndOfToken(), clang::Preprocessor::getLocForEndOfToken(), clang::SourceLocation::getLocWithOffset(), clang::SourceManager::getMacroArgExpandedLocation(), clang::CodeGen::CodeGenModule::GetNonVirtualBaseClassOffset(), getNumberOfModules(), clang::LineTableInfo::getNumFilenames(), clang::SrcMgr::SLocEntry::getOffset(), clang::ento::RegionRawOffset::getOffset(), clang::ASTContext::getOffsetOfBaseWithVBPtr(), clang::interp::InterpFrame::getParam(), clang::interp::InterpFrame::getRetPC(), clang::interp::Function::getSource(), clang::CodeGen::CodeGenTBAA::getTBAAStructInfo(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::CodeGen::CodeGenTBAA::getVTablePtrAccessInfo(), handleAssignment(), clang::consumed::ConsumedStmtVisitor::handleCall(), HandleOperatorDeleteCall(), hasDefaultCXXMethodCC(), hasSuperInitCall(), clang::tooling::HeaderIncludes::HeaderIncludes(), initializeForBlockHeader(), clang::ASTWriter::IsLocalDecl(), isStreamCharSpecialization(), clang::index::FileIndexRecord::isSystem(), clang::ItaniumMangleContext::ItaniumMangleContext(), clang::LayoutOverrideSource::LayoutOverrideSource(), clang::format::FormatTokenLexer::lex(), clang::HeaderSearch::loadModuleMapFile(), loadModuleMapForModuleBuild(), makeStandaloneRange(), llvm::yaml::MappingTraits< clang::tooling::AtomicChange >::mapping(), clang::interp::OffsetHelper(), clang::interp::CodePtr::operator+=(), clang::operator<(), clang::CodeGen::TBAAAccessInfo::operator==(), clang::ModuleMap::parseModuleMapFile(), performTypeAdjustment(), printExpectedDeallocName(), clang::ASTReader::ReadBlockAbbrevs(), clang::serialization::reader::ASTDeclContextNameLookupTrait::ReadDataInto(), clang::ASTReader::ReadPragmaDiagnosticMappings(), recordUsesEBO(), clang::DiagnosticsEngine::SetDelayedDiagnostic(), clang::CodeGen::ABIArgInfo::setDirectOffset(), clang::ASTWriter::SetIdentifierOffset(), clang::ObjCMethodDecl::setLazyBody(), clang::FunctionDecl::setLazyBody(), clang::interp::InterpFrame::setLocal(), clang::ASTWriter::SetSelectorOffset(), shuffleAndStore(), sumOffsets(), clang::HeaderSearch::system_dir_end(), clang::format::WhitespaceManager::useCRLF(), clang::format::~BreakableToken(), and clang::SavedStreamPosition::~SavedStreamPosition().
int Priority |
Definition at line 1811 of file Format.cpp.
Referenced by clang::Sema::ActOnOpenMPPriorityClause(), clang::CodeGen::CodeGenModule::addDeferredVTable(), clang::CodeCompletionResult::CreateCodeCompletionString(), clang::CodeCompletionResult::CreateCodeCompletionStringForMacro(), clang::CodeCompletionString::Chunk::CreateCurrentParameter(), emitGlobalDtorWithCXAAtExit(), clang::CodeGen::emitTaskInit(), clang::ento::BugReporter::FlushReports(), clang::getMacroUsagePriority(), clang::CodeCompletionString::getPriority(), OMPPriorityClause::getPriority(), clang::tooling::HeaderIncludes::insert(), clang::format::sortCppIncludes(), clang::CodeCompletionBuilder::TakeString(), TargetMVPriority(), and OMPPriorityClause::used_children().
const SourceManager& SM |
Definition at line 1667 of file Format.cpp.
Referenced by clang::CodeGen::CodeGenModule::AddDeferredUnusedCoverageMapping(), clang::ASTUnit::addFileLevelDecl(), addFixitForObjCARCConversion(), clang::arcmt::trans::MigrationContext::addPropertyAttribute(), clang::GCCAsmStmt::AnalyzeAsmString(), clang::tooling::Replacement::apply(), applyEditsToTemp(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), clang::ento::ProgramState::assumeInBound(), clang::AttachDependencyGraphGen(), clang::AttachHeaderIncludeGen(), clang::TokenConcatenation::AvoidConcat(), clang::CFGStmtMap::Build(), TokenCollector::Builder::build(), checkAndSanitizeDiags(), CheckMemaccessSize(), checkObjCUnusedIvar(), compare(), compareCrossTUSourceLocs(), comparePiece(), clang::tooling::ExtractionSemicolonPolicy::compute(), clang::ento::PathDiagnosticCallPiece::construct(), clang::StmtSequence::contains(), clang::Lexer::Create_PragmaLexer(), clang::ento::PathDiagnosticLocation::createBegin(), clang::ento::PathDiagnosticLocation::createConditionalColonLoc(), clang::ento::PathDiagnosticLocation::createMemberLoc(), clang::ento::PathDiagnosticLocation::createOperatorLoc(), clang::Sema::DiagnoseAlwaysNonNullPointer(), disambiguateSpellingInScope(), clang::DoRewriteTest(), clang::Decl::dump(), clang::TextNodeDumper::dumpLocation(), clang::DeclContext::dumpLookups(), clang::TextNodeDumper::dumpSourceRange(), clang::LocationContext::dumpStack(), EmitAlphaCounter(), clang::CodeGen::CodeGenModule::EmitAnnotationLineNo(), clang::CodeGen::CodeGenModule::EmitAnnotationUnit(), clang::TextDiagnostic::emitCodeContext(), clang::CodeGen::CoverageMappingGen::emitCounterMapping(), clang::CodeGen::CoverageMappingGen::emitEmptyMapping(), clang::markup::EmitLocation(), clang::DiagnosticRenderer::emitStoredDiagnostic(), clang::arcmt::CapturedDiagList::end(), clang::DiagnosticRenderer::endDiagnostic(), clang::CodeGenAction::ExecuteAction(), clang::PrintDependencyDirectivesSourceMinimizerAction::ExecuteAction(), clang::DumpRawTokensAction::ExecuteAction(), clang::PrintPreprocessedAction::ExecuteAction(), clang::sema::SemaPPCallbacks::FileChanged(), clang::ASTReader::FindFileRegionDecls(), FindLocsWithCommonFileID(), clang::arcmt::trans::findSemiAfterLocation(), clang::tooling::formatAndApplyAllReplacements(), GCRewriteFinalize(), clang::index::generateUSRForMacro(), clang::TypedefNameDecl::getAnonDeclWithTypedefName(), getArgumentValueString(), clang::Lexer::getAsCharRange(), getAsmSrcLocInfo(), getAsPointeeSymbol(), clang::ento::PathDiagnosticCallPiece::getCallee(), clang::Lexer::getCurrentBufferOffset(), clang::ASTWriter::getDeclID(), GetFirstChar(), GetHashOfContent(), clang::cross_tu::CrossTranslationUnitContext::getImportedFromSourceLocation(), clang::ento::PathSensitiveBugReport::getLocation(), clang::ASTUnit::getLocation(), getLocationForCaller(), clang::ento::ProgramState::getLValue(), clang::MacroDirective::getMacroInfo(), clang::ento::PathDiagnosticLocation::getManager(), GetMappedTokenLoc(), clang::ast_type_traits::DynTypedNode::getMemoizationData(), clang::Preprocessor::getModuleHeaderToIncludeForDiagnostics(), clang::SourceManager::getPresumedColumnNumber(), clang::FunctionDecl::getReturnTypeSourceRange(), getStrlenExprArg(), clang::StringLiteral::getStrTokenLoc(), getTargetEntryUniqueInfo(), clang::index::getUSRSpacePrefix(), clang::VerifyDiagnosticConsumer::HandleComment(), clang::LogDiagnosticPrinter::HandleDiagnostic(), HandlePopUpPieceEndTag(), hasSuperInitCall(), clang::html::HighlightMacros(), clang::html::HighlightRange(), clang::index::IndexingContext::importedModule(), clang::VisibleDeclConsumer::includeHiddenDecls(), clang::TokenLexer::Init(), clang::PreprocessingRecord::isEntityInFileID(), llvm::DenseMapInfo< EditEntry >::isEqual(), clang::ento::AnalysisManager::isInCodeFile(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), clang::ento::CallEvent::isInSystemHeader(), clang::SourceLocation::isPairOfFileLocations(), clang::TokenLexer::isParsingPreprocessorDirective(), IsStringPrefix(), clang::syntax::Token::length(), clang::TokenLexer::Lex(), LexRawTokensFromMainFile(), LocPropertyAttribute(), LookThroughTransitiveAssignmentsAndCommaOperators(), makeStandaloneDiagnostic(), clang::ento::ModelInjector::ModelInjector(), clang::SourceRange::operator!=(), outputPrintable(), clang::Parser::ParseConstraintExpression(), clang::index::FileIndexRecord::print(), clang::PrettyStackTraceDecl::print(), clang::TextDiagnostic::printDiagnosticMessage(), clang::LocationContext::printJson(), PrintMacroDefinition(), clang::printSourceLocationAsJson(), ReadLineMarkerFlags(), clang::edit::Commit::replaceText(), clang::ASTReader::resolvePendingMacro(), clang::RewriteMacrosInInput(), clang::arcmt::trans::MigrationContext::rewritePropertyAttribute(), SelectDigraphErrorMessage(), clang::ento::PathDiagnosticCallPiece::setCallee(), clang::Stmt::setIsOMPStructuredBlock(), clang::CodeGen::CGDebugInfo::setLocation(), clang::Rewriter::setSourceMgr(), shouldReportOccurrenceForSystemDeclOnlyMode(), clang::CoverageSourceInfo::SourceRangeSkipped(), clang::Preprocessor::SplitToken(), sumOffsets(), clang::html::SyntaxHighlight(), clang::arcmt::trans::BlockObjCVariableTraverser::traverseBody(), updateConsecutiveMacroArgTokens(), updateExecutedLinesWithDiagnosticPieces(), and wasRegionOfInterestModifiedAt().
StringRef Text |
Definition at line 1808 of file Format.cpp.
Referenced by clang::tooling::Replacements::add(), clang::transformer::cat(), clang::comments::Comment::child_end(), clang::CodeCompletionString::Chunk::Chunk(), clang::format::encoding::columnWidthWithTabs(), clang::format::configurationAsText(), clang::comments::Sema::copyArray(), clang::arcmt::MigrateSourceAction::CreateASTConsumer(), clang::transformer::Stencil::eval(), clang::format::FindCursorIndex(), clang::format::WhitespaceManager::generateReplacements(), clang::CodeCompletionBuilder::getCodeCompletionTUInfo(), clang::format::getEnclosingFunctionName(), clang::tooling::AtomicChange::getError(), getNode(), clang::ASTContext::getRawCommentForDeclNoCacheImpl(), getStableLevel(), clang::comments::TextComment::getText(), clang::comments::VerbatimBlockLineComment::getText(), clang::comments::VerbatimLineComment::getText(), hasSuperInitCall(), clang::format::WhitespaceManager::Change::indentAndNestingLevel(), clang::tooling::AtomicChange::insert(), clang::comments::Parser::parseVerbatimLine(), shouldWarnOnMacroDef(), shouldWarnOnMacroUndef(), clang::syntax::FileRange::text(), and clang::transformer::Stencil::toString().