clang
3.9.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 | |
Dataflow Directional Tag Classes. | |
clang::format | |
Macros | |
#define | DEBUG_TYPE "format-token-annotator" |
Functions | |
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 1339 of file TokenAnnotator.cpp.
unsigned BindingStrength |
Definition at line 890 of file TokenAnnotator.cpp.
Definition at line 898 of file TokenAnnotator.cpp.
Definition at line 901 of file TokenAnnotator.cpp.
Definition at line 894 of file TokenAnnotator.cpp.
Definition at line 893 of file TokenAnnotator.cpp.
Definition at line 895 of file TokenAnnotator.cpp.
tok::TokenKind ContextKind |
Definition at line 889 of file TokenAnnotator.cpp.
Referenced by clang::Sema::CodeCompleteTag(), and clang::Sema::getCurrentMangleNumberContext().
SmallVector<Context, 8> Contexts |
Definition at line 1334 of file TokenAnnotator.cpp.
Referenced by clang::DeclContext::buildLookup(), clang::AnalysisDeclContextManager::clear(), clang::LocationContextManager::getBlockInvocationContext(), clang::AnalysisDeclContextManager::getContext(), getDeclShowContexts(), clang::CodeCompletionTUInfo::getParentName(), clang::LocationContextManager::getStackFrame(), clang::DeclContext::noload_lookup(), and clang::NamedDecl::printQualifiedName().
FormatToken* Current |
Definition at line 1542 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::tooling::deduplicate(), diagnoseUseOfInternalDeclInInlineFunction(), clang::LocalInstantiationScope::findInstantiationOf(), clang::LocalInstantiationScope::getPartiallySubstitutedPack(), clang::LocalInstantiationScope::InstantiatedLocal(), clang::Module::isAvailable(), isDeadReturn(), clang::LLVM_ALIGNAS(), clang::LocalInstantiationScope::MakeInstantiatedLocalArgPack(), clang::Module::markUnavailable(), clang::format::ContinuationIndenter::mustBreak(), clang::ObjCInterfaceDecl::filtered_category_iterator< Filter >::operator++(), clang::TypoCorrectionConsumer::peekNextCorrection(), and clang::format::AnnotatedLine::~AnnotatedLine().
FormatToken* CurrentToken |
Definition at line 1338 of file TokenAnnotator.cpp.
FormatToken* FirstObjCSelectorName = nullptr |
Definition at line 896 of file TokenAnnotator.cpp.
FormatToken* FirstStartOfName = nullptr |
Definition at line 897 of file TokenAnnotator.cpp.
Definition at line 900 of file TokenAnnotator.cpp.
Definition at line 899 of file TokenAnnotator.cpp.
bool IsExpression |
Definition at line 891 of file TokenAnnotator.cpp.
Definition at line 902 of file TokenAnnotator.cpp.
const AdditionalKeywords& Keywords |
Definition at line 1340 of file TokenAnnotator.cpp.
Referenced by clang::format::JavaScriptImportSorter::analyze().
AnnotatedLine& Line |
Definition at line 1337 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::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 892 of file TokenAnnotator.cpp.
llvm::SmallPtrSet<FormatToken *, 16> NonTemplateLess |
Definition at line 1346 of file TokenAnnotator.cpp.
AnnotatingParser& P |
Definition at line 908 of file TokenAnnotator.cpp.
const FormatStyle& Style |
Definition at line 1336 of file TokenAnnotator.cpp.