clang
3.9.0
|
Go to the source code of this file.
Namespaces | |
clang | |
Dataflow Directional Tag Classes. | |
clang::format | |
Macros | |
#define | DEBUG_TYPE "format-formatter" |
#define DEBUG_TYPE "format-formatter" |
Definition at line 14 of file UnwrappedLineFormatter.cpp.
const unsigned AdditionalIndent |
Definition at line 114 of file UnwrappedLineFormatter.cpp.
llvm::SpecificBumpPtrAllocator<StateNode> Allocator |
Definition at line 791 of file UnwrappedLineFormatter.cpp.
Referenced by clang::CodeCompletionBuilder::addBriefComment(), and AddObjCKeyValueCompletions().
UnwrappedLineFormatter* BlockFormatter |
Definition at line 568 of file UnwrappedLineFormatter.cpp.
const SmallVectorImpl<AnnotatedLine *>::const_iterator End |
Definition at line 448 of file UnwrappedLineFormatter.cpp.
Referenced by clang::format::AlignTokenSequence(), clang::Sema::BuildCXXForRangeStmt(), CheckConstantExpression(), checkIfClauses(), checkOpenCLEnqueueLocalSizeArgs(), clang::Sema::CodeCompleteObjCForCollection(), collectMacroDefinitions(), collectModuleHeaderIncludes(), ComputeLineNumbers(), clang::CodeGen::CodeGenModule::computeNonVirtualBaseClassOffset(), clang::Lexer::ComputePreamble(), OMPMappableExprListClause< T >::const_component_lists_iterator::const_component_lists_iterator(), clang::UnresolvedLookupExpr::Create(), clang::format::Environment::CreateVirtualEnvironment(), DecodeTypeFromStr(), DefineBuiltinMacro(), diagnoseObjCLiteralComparison(), diagnoseRedundantReturnTypeQualifiers(), clang::CodeGen::CodeGenFunction::EmitLoadOfScalar(), evenFlexibleArraySize(), findEndOfWord(), GenerateMinimalPathDiagnostic(), clang::Designator::getArrayRange(), clang::Lexer::getAsCharRange(), clang::driver::tools::Clang::getBaseInputStem(), clang::format::getLengthToMatchingParen(), clang::CXXConstructExpr::getLocEnd(), clang::CXXPseudoDestructorExpr::getLocEnd(), clang::InitListExpr::getLocEnd(), clang::driver::Driver::GetNamedOutputPath(), clang::ASTContext::getOverloadedTemplateName(), getRangeForType(), clang::tooling::getRangeSize(), clang::driver::Driver::GetReleaseVersion(), clang::Rewriter::getRewrittenText(), clang::TemplateTemplateParmDecl::getSourceRange(), clang::ClassTemplateSpecializationDecl::getSourceRange(), clang::EnumConstantDecl::getSourceRange(), HandleClassZeroInitialization(), clang::Preprocessor::HandleEndOfFile(), clang::Preprocessor::HandlePragmaIncludeAlias(), HashHMapKey(), highlightRange(), clang::vfs::recursive_directory_iterator::increment(), MakeCharSourceRange(), clang::Lexer::makeFileCharRange(), makeRangeFromFileLocs(), mapDiagnosticRanges(), clang::Sema::MergeFunctionDecl(), OMPMappableExprListClause< T >::const_component_lists_iterator::operator++(), clang::OverloadExpr::OverloadExpr(), clang::serialization::reader::HeaderFileInfoTrait::ReadData(), removeEdgesToDefaultInitializers(), resyncUTF8(), clang::format::sortCppIncludes(), stripPositionalArgs(), tryEvaluateBuiltinObjectSize(), and clang::ConversionFixItGenerator::tryToFixConversion().
unsigned Indent = 0 |
The current line's indent.
Definition at line 126 of file UnwrappedLineFormatter.cpp.
Referenced by ReportControlFlow(), and ReportEvent().
ContinuationIndenter* Indenter |
Definition at line 563 of file UnwrappedLineFormatter.cpp.
std::vector<int> IndentForLevel |
The indent in characters for each level.
Definition at line 117 of file UnwrappedLineFormatter.cpp.
const AdditionalKeywords& Keywords |
Definition at line 113 of file UnwrappedLineFormatter.cpp.
bool NewLine |
Definition at line 664 of file UnwrappedLineFormatter.cpp.
Referenced by clang::format::CommaSeparatedList::formatAfterToken().
SmallVectorImpl<AnnotatedLine *>::const_iterator Next |
Definition at line 450 of file UnwrappedLineFormatter.cpp.
Referenced by clang::ASTContext::adjustDeducedFunctionResultType(), checkIsValidOpenCLKernelParameter(), clang::MacroArgs::deallocate(), DeduceTemplateArgumentsByTypeMatch(), clang::StoredDeclsMap::DestroyAll(), EmitAggMemberInitializer(), FindBestPath(), clang::ast_matchers::dynamic::formatErrorString(), getImageAccessAttrStr(), clang::format::isFunctionDeclarationName(), clang::LLVM_ALIGNAS(), clang::Redeclarable< decl_type >::redecl_iterator::operator++(), removeEdgesToDefaultInitializers(), clang::ASTDeclReader::setNextObjCCategory(), clang::FileSystemStatCache::statChained(), and clang::ento::ExprEngine::Visit().
int Offset = 0 |
Offset of the current line relative to the indent level.
For example, the 'public' keywords is often indented with a negative offset.
Definition at line 123 of file UnwrappedLineFormatter.cpp.
StateNode* Previous |
Definition at line 665 of file UnwrappedLineFormatter.cpp.
Referenced by clang::Sema::ActOnAliasDeclaration(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnStartCategoryInterface(), clang::Sema::ActOnTag(), clang::Sema::addMethodToGlobalList(), clang::ASTDeclReader::attachPreviousDecl(), clang::ASTDeclReader::attachPreviousDeclImpl(), clang::driver::Driver::BuildInputs(), clang::Sema::BuildUsingDeclaration(), clang::Sema::BuildVariableInstantiation(), clang::format::ContinuationIndenter::canBreak(), clang::Sema::CheckClassTemplate(), DiagnoseInvalidRedeclaration(), clang::Sema::HandleDeclarator(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), clang::Sema::isAcceptableTagRedeclaration(), clang::format::ContinuationIndenter::mustBreak(), clang::format::startsNextParameter(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), and clang::TemplateDeclInstantiator::VisitFunctionDecl().
LineState State |
Definition at line 663 of file UnwrappedLineFormatter.cpp.
Referenced by clang::Sema::ActOnIdExpression(), clang::ento::CheckerContext::addTransition(), assumeCollectionNonEmpty(), clang::ento::SimpleConstraintManager::assumeWithinInclusiveRange(), clang::ento::ExprEngine::bindReturnValue(), checkCollectionNonNil(), clang::ento::CheckerDocumentation::checkConstPointerEscape(), clang::ento::mpi::MPIChecker::checkDoubleNonblocking(), checkElementNonNil(), clang::ento::mpi::MPIChecker::checkMissingWaits(), clang::ento::CheckerDocumentation::checkPointerEscape(), clang::ento::CheckerDocumentation::checkRegionChanges(), clang::ento::mpi::MPIChecker::checkUnmatchedWaits(), clang::MaterializeTemporaryExpr::children(), clang::ento::CallEvent::cloneWithState(), clang::Preprocessor::dumpMacroInfo(), clang::CodeGen::emitDeclareSimdFunction(), clang::ento::CheckerDocumentation::evalAssume(), clang::ento::CheckerContext::generateErrorNode(), clang::ento::CheckerContext::generateNonFatalErrorNode(), getArgumentValueString(), getAsPointeeSymbol(), clang::consumed::PropagationInfo::getAsState(), clang::ento::CheckerContext::getCalleeDecl(), clang::CallEventManager::getCaller(), clang::CallEventManager::getCXXAllocatorCall(), clang::CallEventManager::getCXXConstructorCall(), clang::CallEventManager::getCXXDestructorCall(), clang::MaterializeTemporaryExpr::getExtendingDecl(), clang::format::ContinuationIndenter::getInitialState(), clang::ento::ProgramStateManager::getInitialState(), clang::MaterializeTemporaryExpr::getManglingNumber(), clang::ento::StackHintGeneratorForSymbol::getMessage(), clang::CallEventManager::getObjCMethodCall(), clang::CallEventManager::getSimpleCall(), clang::ento::CallEvent::getState(), clang::consumed::PropagationInfo::getState(), clang::MaterializeTemporaryExpr::getTemporary(), handleLoopHintAttr(), clang::ento::ExprEngine::notifyCheckersOfPointerEscape(), clang::ento::ExprEngine::processPointerEscapedOnBind(), clang::ento::ExprEngine::ProcessTemporaryDtor(), REGISTER_MAP_WITH_PROGRAMSTATE(), REGISTER_TRAIT_WITH_PROGRAMSTATE(), clang::ento::CheckerManager::runCheckersForPointerEscape(), clang::MaterializeTemporaryExpr::setExtendingDecl(), clang::consumed::ConsumedStateMap::setState(), clang::consumed::setStateForVarOrTmp(), clang::CodeGen::LoopInfoStack::setUnrollState(), updateOutParameter(), clang::serialization::ModuleManager::visit(), clang::ento::ExprEngine::VisitBlockExpr(), clang::ento::ExprEngine::VisitCompoundLiteralExpr(), clang::ento::UndefOrNullArgVisitor::VisitNode(), and clang::ento::ExprEngine::VisitObjCMessage().
const FormatStyle& Style |
Definition at line 112 of file UnwrappedLineFormatter.cpp.
WhitespaceManager* Whitespaces |
Definition at line 566 of file UnwrappedLineFormatter.cpp.
Referenced by NormalizeLine().