1//===--- DeclTemplate.cpp - Template Declaration AST Node Implementation --===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
--- 248 unchanged lines hidden (view full) ---
257//===----------------------------------------------------------------------===//
258// NonTypeTemplateParmDecl Method Implementations
259//===----------------------------------------------------------------------===//
260
261NonTypeTemplateParmDecl *
262NonTypeTemplateParmDecl::Create(ASTContext &C, DeclContext *DC,
263 SourceLocation L, unsigned D, unsigned P,
264 IdentifierInfo *Id, QualType T,
265 DeclaratorInfo *DInfo) {
266 return new (C) NonTypeTemplateParmDecl(DC, L, D, P, Id, T, DInfo);
267}
268
269SourceLocation NonTypeTemplateParmDecl::getDefaultArgumentLoc() const {
270 return DefaultArgument? DefaultArgument->getSourceRange().getBegin()
271 : SourceLocation();
272}
273
274//===----------------------------------------------------------------------===//
--- 213 unchanged lines hidden ---
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
--- 248 unchanged lines hidden (view full) ---
257//===----------------------------------------------------------------------===//
258// NonTypeTemplateParmDecl Method Implementations
259//===----------------------------------------------------------------------===//
260
261NonTypeTemplateParmDecl *
262NonTypeTemplateParmDecl::Create(ASTContext &C, DeclContext *DC,
263 SourceLocation L, unsigned D, unsigned P,
264 IdentifierInfo *Id, QualType T,
265 DeclaratorInfo *DInfo) {
266 return new (C) NonTypeTemplateParmDecl(DC, L, D, P, Id, T, DInfo);
267}
268
269SourceLocation NonTypeTemplateParmDecl::getDefaultArgumentLoc() const {
270 return DefaultArgument? DefaultArgument->getSourceRange().getBegin()
271 : SourceLocation();
272}
273
274//===----------------------------------------------------------------------===//
--- 213 unchanged lines hidden ---