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

Go to the source code of this file.

Namespaces

 clang
 /file This file defines classes for searching and anlyzing source code clones.
 
 clang::format
 

Macros

#define DEBUG_TYPE   "format-formatter"
 

Macro Definition Documentation

#define DEBUG_TYPE   "format-formatter"

Definition at line 15 of file UnwrappedLineFormatter.cpp.

Variable Documentation

const unsigned AdditionalIndent

Definition at line 122 of file UnwrappedLineFormatter.cpp.

llvm::SpecificBumpPtrAllocator<StateNode> Allocator
const SmallVectorImpl<AnnotatedLine *>& AnnotatedLines

Definition at line 542 of file UnwrappedLineFormatter.cpp.

Referenced by clang::format::TokenAnalyzer::process().

UnwrappedLineFormatter* BlockFormatter

Definition at line 659 of file UnwrappedLineFormatter.cpp.

const SmallVectorImpl<AnnotatedLine *>::const_iterator End

Definition at line 539 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::EmitMSVCBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitScalarRangeCheck(), evenFlexibleArraySize(), findEndOfWord(), findLinesForRange(), findVCToolChainViaEnvironment(), 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::Rewriter::getRewrittenText(), clang::TemplateTemplateParmDecl::getSourceRange(), clang::ClassTemplateSpecializationDecl::getSourceRange(), clang::EnumConstantDecl::getSourceRange(), HandleClassZeroInitialization(), clang::Preprocessor::HandlePragmaIncludeAlias(), clang::Preprocessor::HandlePragmaModuleBuild(), 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::Decl::printGroup(), printModuleId(), clang::serialization::reader::HeaderFileInfoTrait::ReadData(), removeEdgesToDefaultInitializers(), resyncUTF8(), stripPositionalArgs(), and clang::ConversionFixItGenerator::tryToFixConversion().

unsigned Indent = 0

The current line's indent.

Definition at line 134 of file UnwrappedLineFormatter.cpp.

Referenced by ReportControlFlow(), and ReportEvent().

ContinuationIndenter* Indenter

Definition at line 654 of file UnwrappedLineFormatter.cpp.

std::vector<int> IndentForLevel

The indent in characters for each level.

Definition at line 125 of file UnwrappedLineFormatter.cpp.

const AdditionalKeywords& Keywords

Definition at line 121 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 131 of file UnwrappedLineFormatter.cpp.

StateNode* Previous
LineState State

Definition at line 755 of file UnwrappedLineFormatter.cpp.

Referenced by clang::Sema::ActOnIdExpression(), clang::ento::CheckerContext::addTransition(), assumeCollectionNonEmpty(), clang::ento::SimpleConstraintManager::assumeInclusiveRange(), 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::Preprocessor::EnterSubmodule(), 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(), isGreaterEqual(), isNegative(), clang::ento::ExprEngine::notifyCheckersOfPointerEscape(), clang::ento::ExprEngine::processPointerEscapedOnBind(), clang::ento::ExprEngine::ProcessTemporaryDtor(), clang::ASTReader::ReadPragmaDiagnosticMappings(), REGISTER_MAP_WITH_PROGRAMSTATE(), REGISTER_TRAIT_WITH_PROGRAMSTATE(), removeFromState(), 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(), clang::ento::ExprEngine::VisitObjCMessage(), and clang::ento::ExprEngine::VisitUnaryOperator().

const FormatStyle& Style

Definition at line 120 of file UnwrappedLineFormatter.cpp.

WhitespaceManager* Whitespaces

Definition at line 657 of file UnwrappedLineFormatter.cpp.

Referenced by NormalizeLine().