clang
8.0.0
|
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 | |
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterators. | |
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 () |
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::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) |
static void | clang::format::sortCppIncludes (const FormatStyle &Style, const SmallVectorImpl< IncludeDirective > &Includes, ArrayRef< tooling::Range > Ranges, StringRef FileName, 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, 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 48 of file Format.cpp.
std::vector<StringRef> AssociatedCommentLines |
Definition at line 1639 of file Format.cpp.
int Category |
Definition at line 1632 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::ento::PathDiagnostic::Profile(), clang::CodeGen::CodeGenModule::setFunctionLinkage(), clang::format::sortCppIncludes(), clang::InitializationSequence::steps(), clang::ASTNodeImporter::VisitObjCCategoryImplDecl(), and clang::tooling::ToolExecutorPlugin::~ToolExecutorPlugin().
StringRef Filename |
Definition at line 1629 of file Format.cpp.
Referenced by clang::MemoryBufferCache::addBuffer(), adjustFilenameForRelocatableAST(), clang::FrontendAction::BeginSourceFile(), clang::PrecompiledPreamble::Build(), clang::Preprocessor::checkModuleIsAvailable(), clang::FixItAction::CreateASTConsumer(), CreateSLocExpansionAbbrev(), DetectEOL(), clang::ModuleMap::diagnoseHeaderInclusion(), clang::CodeGen::CodeGenFunction::EmitCheckSourceLocation(), clang::TextDiagnostic::emitCodeContext(), clang::BackendConsumer::EmitOptimizationMessage(), EnableCodeCompletion(), EvaluateHasIncludeCommon(), clang::LineEntry::get(), clang::FileManager::getBufferForFile(), clang::DependencyCollector::getDependencies(), getFileName(), clang::PresumedLoc::getFilename(), clang::CompilerInstance::getFrontendTimer(), clang::driver::toolchains::CudaToolChain::getInputFilename(), clang::SourceManager::getPresumedLoc(), getPrivateModuleMap(), getPublicModuleMap(), 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::HeaderSearch::LookupFile(), MakeCLOutputFilename(), needModuleLookup(), 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::ChainedASTReaderListener::takeSecond(), clang::BackendConsumer::UnsupportedDiagHandler(), and clang::FixItRewriter::WriteFixedFiles().
StringRef Identifier |
Definition at line 1636 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::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 1640 of file Format.cpp.
Referenced by constructHexagonLinkArgs(), clang::driver::tools::nacltools::Linker::ConstructJob(), clang::Sema::CorrectDelayedTyposInExpr(), and clang::format::sortJavaImports().
unsigned Offset |
Definition at line 1631 of file Format.cpp.
Referenced by clang::tooling::Replacements::add(), clang::ModuleMap::addAdditionalModuleMapFile(), clang::CodeGen::CodeGenModule::addDeferredVTable(), clang::ASTUnit::addFileLevelDecl(), clang::LineTableInfo::AddLineNote(), clang::ASTUnit::addTopLevelDecl(), clang::Lexer::AdvanceToTokenCharacter(), calculateOffset(), clang::CodeGen::CGObjCRuntime::CGObjCRuntime(), checkFormatStringExpr(), clang::format::BreakableStringLiteral::compressWhitespace(), clang::CodeGen::CodeGenModule::computeNonVirtualBaseClassOffset(), 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(), clang::CodeGen::CodeGenFunction::EmitAsanPrologueOrEpilogue(), emitRTtypeidCall(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsOutlinedFunction(), EmitX86_64VAArgFromMemory(), clang::RopePieceBTree::empty(), evaluateCDTSize(), EvaluatePointer(), findBeginningOfLine(), FindIvarInterface(), clang::Lexer::findLocationAfterToken(), clang::LineTableInfo::FindNearestLineEntry(), clang::ASTReader::forEachImportedKeyDecl(), clang::SrcMgr::SLocEntry::get(), clang::CodeGen::CodeGenFunction::GetAddressOfDirectBaseInCompleteClass(), clang::tooling::Replacements::getAffectedRanges(), GetAlignOfExpr(), getAsInt32(), clang::SourceManager::getBufferData(), 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::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::CodeGen::CodeGenTBAA::getTBAAStructInfo(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::CodeGen::CodeGenTBAA::getVTablePtrAccessInfo(), handleAssignment(), clang::consumed::ConsumedStmtVisitor::handleCall(), hasDefaultCXXMethodCC(), hasSuperInitCall(), clang::tooling::HeaderIncludes::HeaderIncludes(), clang::HeaderSearch::IncrementFrameworkLookupCount(), initializeForBlockHeader(), clang::ASTWriter::IsLocalDecl(), isStreamCharSpecialization(), clang::ItaniumMangleContext::ItaniumMangleContext(), clang::LayoutOverrideSource::LayoutOverrideSource(), clang::format::FormatTokenLexer::lex(), clang::HeaderSearch::loadModuleMapFile(), loadModuleMapForModuleBuild(), makeStandaloneRange(), llvm::yaml::MappingTraits< clang::tooling::AtomicChange >::mapping(), clang::operator<(), clang::CodeGen::TBAAAccessInfo::operator==(), clang::ModuleMap::parseModuleMapFile(), performTypeAdjustment(), 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::ASTWriter::SetSelectorOffset(), shuffleAndStore(), sumOffsets(), clang::HeaderSearch::system_dir_end(), clang::format::WhitespaceManager::WhitespaceManager(), clang::format::~BreakableToken(), and clang::SavedStreamPosition::~SavedStreamPosition().
const SourceManager& SM |
Definition at line 1490 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(), checkAndSanitizeDiags(), CheckMemaccessSize(), checkObjCUnusedIvar(), compare(), compareCrossTUSourceLocs(), comparePiece(), clang::tooling::ExtractionSemicolonPolicy::compute(), clang::ento::PathDiagnosticCallPiece::construct(), clang::StmtSequence::contains(), clang::SrcMgr::ContentCache::ContentCache(), clang::Lexer::Create_PragmaLexer(), clang::ento::PathDiagnosticLocation::createBegin(), clang::ento::PathDiagnosticLocation::createConditionalColonLoc(), clang::ento::PathDiagnosticLocation::createEndOfPath(), clang::ento::PathDiagnosticLocation::createMemberLoc(), clang::ento::PathDiagnosticLocation::createOperatorLoc(), clang::Sema::DiagnoseAlwaysNonNullPointer(), clang::DoRewriteTest(), clang::Decl::dump(), clang::TextNodeDumper::dumpLocation(), clang::DeclContext::dumpLookups(), clang::TextNodeDumper::dumpSourceRange(), 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::DumpRawTokensAction::ExecuteAction(), clang::PrintPreprocessedAction::ExecuteAction(), clang::sema::SemaPPCallbacks::FileChanged(), clang::ASTReader::FindFileRegionDecls(), clang::arcmt::trans::findSemiAfterLocation(), clang::tooling::formatAndApplyAllReplacements(), GCRewriteFinalize(), generateDiagForBinaryOP(), generatePathDiagnosticForConsumer(), generatePathDiagnosticsForNode(), clang::index::generateUSRForMacro(), clang::TypedefNameDecl::getAnonDeclWithTypedefName(), getArgumentValueString(), clang::Lexer::getAsCharRange(), getAsmSrcLocInfo(), getAsPointeeSymbol(), clang::Lexer::getBufferLocation(), clang::ento::PathDiagnosticCallPiece::getCallee(), clang::ASTWriter::getDeclID(), clang::ento::BugReport::getExtraText(), GetFirstChar(), GetHashOfContent(), 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(), clang::Stmt::getStmtClass(), getStrlenExprArg(), clang::StringLiteral::getStrTokenLoc(), getTargetEntryUniqueInfo(), clang::index::getUSRSpacePrefix(), clang::VerifyDiagnosticConsumer::HandleComment(), clang::LogDiagnosticPrinter::HandleDiagnostic(), 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::TokenLexer::Lex(), LexRawTokensFromMainFile(), LocPropertyAttribute(), makeStandaloneDiagnostic(), clang::ento::ModelInjector::ModelInjector(), clang::SourceRange::operator!=(), outputPrintable(), clang::Parser::ParseConstraintExpression(), clang::PrettyStackTraceDecl::print(), clang::TextDiagnostic::printDiagnosticMessage(), PrintMacroDefinition(), ReadLineMarkerFlags(), clang::edit::Commit::replaceText(), clang::ASTReader::resolvePendingMacro(), clang::RewriteMacrosInInput(), clang::arcmt::trans::MigrationContext::rewritePropertyAttribute(), SelectDigraphErrorMessage(), clang::ento::PathDiagnosticCallPiece::setCallee(), clang::CodeGen::CGDebugInfo::setLocation(), clang::Rewriter::setSourceMgr(), shouldReportOccurrenceForSystemDeclOnlyMode(), clang::CoverageSourceInfo::SourceRangeSkipped(), clang::Preprocessor::SplitToken(), sumOffsets(), clang::html::SyntaxHighlight(), clang::arcmt::trans::BlockObjCVariableTraverser::traverseBody(), updateConsecutiveMacroArgTokens(), updateStackPiecesWithMessage(), wasRegionOfInterestModifiedAt(), and clang::VerifyDiagnosticConsumer::~VerifyDiagnosticConsumer().
StringRef Text |
Definition at line 1630 of file Format.cpp.
Referenced by clang::tooling::Replacements::add(), clang::comments::Comment::child_end(), clang::CodeCompletionString::Chunk::Chunk(), clang::format::encoding::columnWidthWithTabs(), clang::format::configurationAsText(), clang::comments::Sema::copyArray(), clang::VerifyDiagnosticConsumer::Directive::create(), clang::arcmt::MigrateSourceAction::CreateASTConsumer(), clang::format::FindCursorIndex(), clang::format::WhitespaceManager::generateReplacements(), clang::CodeCompletionBuilder::getCodeCompletionTUInfo(), clang::format::getEnclosingFunctionName(), clang::tooling::AtomicChange::getError(), clang::ASTContext::getRawCommentForDeclNoCache(), 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(), and shouldWarnOnMacroUndef().