|
clang
5.0.0
|
This file implements a token annotator, i.e. More...
#include "TokenAnnotator.h"#include "clang/Basic/SourceManager.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/Support/Debug.h"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-token-annotator" |
Functions | |
| static unsigned | clang::format::maxNestingDepth (const AnnotatedLine &Line) |
| static bool | clang::format::isFunctionDeclarationName (const FormatToken &Current, const AnnotatedLine &Line) |
| static bool | clang::format::isAllmanBrace (const FormatToken &Tok) |
This file implements a token annotator, i.e.
creates AnnotatedTokens out of FormatTokens with required extra information.
Definition in file TokenAnnotator.cpp.
| #define DEBUG_TYPE "format-token-annotator" |
Definition at line 21 of file TokenAnnotator.cpp.
| bool AutoFound |
Definition at line 1476 of file TokenAnnotator.cpp.
| unsigned BindingStrength |
Definition at line 983 of file TokenAnnotator.cpp.
Definition at line 991 of file TokenAnnotator.cpp.
Definition at line 995 of file TokenAnnotator.cpp.
Definition at line 987 of file TokenAnnotator.cpp.
Definition at line 986 of file TokenAnnotator.cpp.
Definition at line 988 of file TokenAnnotator.cpp.
| tok::TokenKind ContextKind |
Definition at line 982 of file TokenAnnotator.cpp.
Referenced by clang::Sema::CodeCompleteTag(), diagnoseUncapturableValueReference(), and clang::Sema::getCurrentMangleNumberContext().
| SmallVector<Context, 8> Contexts |
Definition at line 1471 of file TokenAnnotator.cpp.
Referenced by clang::DeclContext::buildLookup(), getDeclShowContexts(), clang::CodeCompletionTUInfo::getParentName(), clang::DeclContext::noload_lookup(), and clang::NamedDecl::printQualifiedName().
| FormatToken* Current |
Definition at line 1687 of file TokenAnnotator.cpp.
Referenced by clang::format::ContinuationIndenter::addTokenToState(), clang::format::AnnotatedLine::AnnotatedLine(), clang::driver::Driver::BuildActions(), clang::format::ContinuationIndenter::canBreak(), clang::Sema::CheckDelegatingCtorCycles(), clang::RecursiveCloneTypeIIConstraint::constrain(), diagnoseUseOfInternalDeclInInlineFunction(), clang::LocalInstantiationScope::findInstantiationOf(), clang::LocalInstantiationScope::getPartiallySubstitutedPack(), clang::LocalInstantiationScope::InstantiatedLocal(), clang::Module::isAvailable(), isDeadReturn(), clang::CompilerInstance::loadModuleFile(), clang::LocalInstantiationScope::MakeInstantiatedLocalArgPack(), clang::Module::markUnavailable(), clang::format::ContinuationIndenter::mustBreak(), clang::Decl::redecl_iterator::operator*(), clang::Decl::redecl_iterator::operator++(), clang::ObjCInterfaceDecl::filtered_category_iterator< Filter >::operator++(), clang::Decl::redecl_iterator::operator->(), clang::TypoCorrectionConsumer::peekNextCorrection(), and clang::format::AnnotatedLine::~AnnotatedLine().
| FormatToken* CurrentToken |
Definition at line 1475 of file TokenAnnotator.cpp.
| FormatToken* FirstObjCSelectorName = nullptr |
Definition at line 989 of file TokenAnnotator.cpp.
| FormatToken* FirstStartOfName = nullptr |
Definition at line 990 of file TokenAnnotator.cpp.
Definition at line 993 of file TokenAnnotator.cpp.
Definition at line 994 of file TokenAnnotator.cpp.
Definition at line 992 of file TokenAnnotator.cpp.
| bool IsExpression |
Definition at line 984 of file TokenAnnotator.cpp.
Definition at line 996 of file TokenAnnotator.cpp.
| const AdditionalKeywords& Keywords |
Definition at line 1477 of file TokenAnnotator.cpp.
| AnnotatedLine& Line |
Definition at line 1474 of file TokenAnnotator.cpp.
Referenced by clang::ASTUnit::CodeComplete(), clang::format::AffectedRangeManager::computeAffectedLines(), clang::CodeGen::createOffloadEntriesAndInfoMetadata(), DetectDistro(), clang::CodeGen::CodeGenFunction::EmitCheckSourceLocation(), clang::CodeGen::CGDebugInfo::EmitDeclareOfBlockDeclRefVariable(), clang::BackendConsumer::EmitOptimizationMessage(), clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(), clang::format::UnwrappedLineFormatter::format(), clang::LineEntry::get(), clang::Lexer::getIndentationForLine(), clang::format::ContinuationIndenter::getInitialState(), GetNthLineOfFile(), clang::LayoutOverrideSource::LayoutOverrideSource(), ParseDirective(), clang::comments::Parser::parseVerbatimBlock(), clang::CodeGen::scanForTargetRegionsFunctions(), clang::Preprocessor::SetCodeCompletionPoint(), clang::format::sortCppIncludes(), and clang::BackendConsumer::UnsupportedDiagHandler().
| unsigned LongestObjCSelectorName = 0 |
Definition at line 985 of file TokenAnnotator.cpp.
| llvm::SmallPtrSet<FormatToken *, 16> NonTemplateLess |
Definition at line 1483 of file TokenAnnotator.cpp.
| AnnotatingParser& P |
Definition at line 1002 of file TokenAnnotator.cpp.
| const FormatStyle& Style |
Definition at line 1473 of file TokenAnnotator.cpp.
1.8.6