clang  6.0.0svn
Functions
TemplateBase.cpp File Reference
#include "clang/AST/TemplateBase.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/Type.h"
#include "clang/AST/TypeLoc.h"
#include "clang/Basic/Diagnostic.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
Include dependency graph for TemplateBase.cpp:

Go to the source code of this file.

Functions

static void printIntegral (const TemplateArgument &TemplArg, raw_ostream &Out, const PrintingPolicy &Policy)
 Print a template integral argument value. More...
 

Function Documentation

◆ printIntegral()

static void printIntegral ( const TemplateArgument TemplArg,
raw_ostream &  Out,
const PrintingPolicy Policy 
)
static

Print a template integral argument value.

Parameters
TemplArgthe TemplateArgument instance to print.
Outthe raw_ostream instance to use for printing.
Policythe printing policy for EnumConstantDecl printing.

Definition at line 38 of file TemplateBase.cpp.

References clang::Type::getAs(), clang::TemplateArgument::getAsIntegral(), clang::TemplateArgument::getIntegralType(), clang::QualType::getTypePtr(), clang::PrintingPolicy::MSVCFormatting, and clang::T.