clang  9.0.0svn
Functions
ParseTemplate.cpp File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "clang/Sema/DeclSpec.h"
#include "clang/Sema/ParsedTemplate.h"
#include "clang/Sema/Scope.h"
#include "llvm/Support/TimeProfiler.h"
Include dependency graph for ParseTemplate.cpp:

Go to the source code of this file.

Functions

static bool isEndOfTemplateArgument (Token Tok)
 Determine whether the given token can end a template argument. More...
 

Function Documentation

◆ isEndOfTemplateArgument()

static bool isEndOfTemplateArgument ( Token  Tok)
static

Determine whether the given token can end a template argument.

Definition at line 1147 of file ParseTemplate.cpp.

References clang::Sema::ActOnDependentTemplateName(), clang::Sema::ActOnPackExpansion(), clang::Sema::ActOnTemplateTypeArgument(), clang::Scope::CompoundStmtScope, clang::Sema::ConstantEvaluated, clang::Parser::ConsumeAnyToken(), clang::Parser::ConsumeToken(), clang::Sema::Context, clang::LateParsedTemplate::D, clang::Scope::DeclScope, clang::Sema::ExpressionEvaluationContextRecord::EK_TemplateArgument, clang::ExprError(), clang::Scope::FnScope, clang::ActionResult< PtrTy, CompressInvalid >::get(), clang::Decl::getAsFunction(), clang::Parser::getCurScope(), clang::Token::getIdentifierInfo(), clang::Parser::getLangOpts(), clang::DeclContext::getLexicalParent(), clang::Token::getLocation(), clang::tooling::fixit::internal::getSourceRange(), clang::getTemplateParamsRange(), clang::ASTContext::getTranslationUnitDecl(), clang::Greater, clang::Token::is(), clang::format::FormatToken::is(), clang::ParsedTemplateArgument::isInvalid(), clang::ActionResult< PtrTy, CompressInvalid >::isInvalid(), clang::Token::isOneOf(), clang::format::FormatToken::isOneOf(), clang::CXXScopeSpec::isSet(), clang::Sema::isTemplateName(), clang::DeclContext::isTranslationUnit(), clang::SourceLocation::isValid(), clang::Less, clang::Parser::MaybeTypeCast, clang::Parser::NextToken(), clang::ParsedTemplateArgument::NonType, clang::ParsingDeclRAIIObject::NoParent, P, clang::Parser::ParseConstantExpressionInExprEvalContext(), clang::Parser::ParseTypeName(), clang::Result, clang::UnqualifiedId::setIdentifier(), clang::Parser::SkipUntil(), clang::UnqualifiedId::StartLocation, clang::Parser::StopAtSemi, clang::Parser::StopBeforeMatch, clang::TemplateArgContext, clang::Scope::TemplateParamScope, clang::TNK_Dependent_template_name, clang::TNK_Type_template, clang::LateParsedTemplate::Toks, and clang::Parser::TryConsumeToken().