clang  3.9.0
Namespaces | Macros
UnwrappedLineFormatter.cpp File Reference
#include "UnwrappedLineFormatter.h"
#include "WhitespaceManager.h"
#include "llvm/Support/Debug.h"
Include dependency graph for UnwrappedLineFormatter.cpp:

Go to the source code of this file.

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::format
 

Macros

#define DEBUG_TYPE   "format-formatter"
 

Macro Definition Documentation

#define DEBUG_TYPE   "format-formatter"

Definition at line 14 of file UnwrappedLineFormatter.cpp.

Variable Documentation

const unsigned AdditionalIndent

Definition at line 114 of file UnwrappedLineFormatter.cpp.

llvm::SpecificBumpPtrAllocator<StateNode> Allocator
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
SmallVectorImpl<AnnotatedLine *>::const_iterator Next
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
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().