Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 1 | //===--- DeclCXX.cpp - C++ 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 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the C++ related Decl classes. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "clang/AST/DeclCXX.h" |
| 15 | #include "clang/AST/ASTContext.h" |
Douglas Gregor | 7d7e672 | 2008-11-12 23:21:09 +0000 | [diff] [blame] | 16 | #include "clang/Basic/IdentifierTable.h" |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 17 | using namespace clang; |
| 18 | |
| 19 | //===----------------------------------------------------------------------===// |
| 20 | // Decl Allocation/Deallocation Method Implementations |
| 21 | //===----------------------------------------------------------------------===// |
Douglas Gregor | 72c3f31 | 2008-12-05 18:15:24 +0000 | [diff] [blame] | 22 | |
| 23 | TemplateTypeParmDecl * |
| 24 | TemplateTypeParmDecl::Create(ASTContext &C, DeclContext *DC, |
| 25 | SourceLocation L, IdentifierInfo *Id, |
| 26 | bool Typename) { |
| 27 | void *Mem = C.getAllocator().Allocate<TemplateTypeParmDecl>(); |
| 28 | return new (Mem) TemplateTypeParmDecl(DC, L, Id, Typename); |
| 29 | } |
| 30 | |
| 31 | NonTypeTemplateParmDecl * |
| 32 | NonTypeTemplateParmDecl::Create(ASTContext &C, DeclContext *DC, |
| 33 | SourceLocation L, IdentifierInfo *Id, |
| 34 | QualType T, SourceLocation TypeSpecStartLoc) { |
| 35 | void *Mem = C.getAllocator().Allocate<NonTypeTemplateParmDecl>(); |
| 36 | return new (Mem) NonTypeTemplateParmDecl(DC, L, Id, T, TypeSpecStartLoc); |
| 37 | } |
| 38 | |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 39 | CXXRecordDecl::CXXRecordDecl(TagKind TK, DeclContext *DC, |
Douglas Gregor | 7d7e672 | 2008-11-12 23:21:09 +0000 | [diff] [blame] | 40 | SourceLocation L, IdentifierInfo *Id) |
Douglas Gregor | 44b4321 | 2008-12-11 16:49:14 +0000 | [diff] [blame] | 41 | : RecordDecl(CXXRecord, TK, DC, L, Id), |
Douglas Gregor | 7d7e672 | 2008-11-12 23:21:09 +0000 | [diff] [blame] | 42 | UserDeclaredConstructor(false), UserDeclaredCopyConstructor(false), |
Douglas Gregor | 9e7d9de | 2008-12-15 21:24:18 +0000 | [diff] [blame^] | 43 | UserDeclaredDestructor(false), Aggregate(true), Polymorphic(false), |
| 44 | Bases(0), NumBases(0), |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 45 | Conversions(DC, DeclarationName()) { } |
Douglas Gregor | 7d7e672 | 2008-11-12 23:21:09 +0000 | [diff] [blame] | 46 | |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 47 | CXXRecordDecl *CXXRecordDecl::Create(ASTContext &C, TagKind TK, DeclContext *DC, |
| 48 | SourceLocation L, IdentifierInfo *Id, |
| 49 | CXXRecordDecl* PrevDecl) { |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 50 | void *Mem = C.getAllocator().Allocate<CXXRecordDecl>(); |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 51 | CXXRecordDecl* R = new (Mem) CXXRecordDecl(TK, DC, L, Id); |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 52 | C.getTypeDeclType(R, PrevDecl); |
| 53 | return R; |
| 54 | } |
| 55 | |
Douglas Gregor | f8268ae | 2008-10-22 17:49:05 +0000 | [diff] [blame] | 56 | CXXRecordDecl::~CXXRecordDecl() { |
Douglas Gregor | f8268ae | 2008-10-22 17:49:05 +0000 | [diff] [blame] | 57 | delete [] Bases; |
| 58 | } |
| 59 | |
Douglas Gregor | 57c856b | 2008-10-23 18:13:27 +0000 | [diff] [blame] | 60 | void |
| 61 | CXXRecordDecl::setBases(CXXBaseSpecifier const * const *Bases, |
| 62 | unsigned NumBases) { |
Douglas Gregor | 64bffa9 | 2008-11-05 16:20:31 +0000 | [diff] [blame] | 63 | // C++ [dcl.init.aggr]p1: |
| 64 | // An aggregate is an array or a class (clause 9) with [...] |
| 65 | // no base classes [...]. |
| 66 | Aggregate = false; |
| 67 | |
Douglas Gregor | 57c856b | 2008-10-23 18:13:27 +0000 | [diff] [blame] | 68 | if (this->Bases) |
| 69 | delete [] this->Bases; |
| 70 | |
| 71 | this->Bases = new CXXBaseSpecifier[NumBases]; |
| 72 | this->NumBases = NumBases; |
| 73 | for (unsigned i = 0; i < NumBases; ++i) |
| 74 | this->Bases[i] = *Bases[i]; |
| 75 | } |
| 76 | |
Douglas Gregor | 396b7cd | 2008-11-03 17:51:48 +0000 | [diff] [blame] | 77 | bool CXXRecordDecl::hasConstCopyConstructor(ASTContext &Context) const { |
Douglas Gregor | 9e7d9de | 2008-12-15 21:24:18 +0000 | [diff] [blame^] | 78 | QualType ClassType = Context.getTypeDeclType(const_cast<CXXRecordDecl*>(this)); |
| 79 | DeclarationName ConstructorName |
| 80 | = Context.DeclarationNames.getCXXConstructorName( |
| 81 | Context.getCanonicalType(ClassType)); |
| 82 | unsigned TypeQuals; |
| 83 | DeclContext::lookup_const_result Lookup |
| 84 | = this->lookup(Context, ConstructorName); |
| 85 | if (Lookup.first == Lookup.second) |
| 86 | return false; |
| 87 | else if (OverloadedFunctionDecl *Constructors |
| 88 | = dyn_cast<OverloadedFunctionDecl>(*Lookup.first)) { |
| 89 | for (OverloadedFunctionDecl::function_const_iterator Con |
| 90 | = Constructors->function_begin(); |
| 91 | Con != Constructors->function_end(); ++Con) { |
Douglas Gregor | 396b7cd | 2008-11-03 17:51:48 +0000 | [diff] [blame] | 92 | if (cast<CXXConstructorDecl>(*Con)->isCopyConstructor(Context, TypeQuals) && |
| 93 | (TypeQuals & QualType::Const != 0)) |
| 94 | return true; |
Douglas Gregor | 9e7d9de | 2008-12-15 21:24:18 +0000 | [diff] [blame^] | 95 | } |
| 96 | } else if (CXXConstructorDecl *Constructor |
| 97 | = dyn_cast<CXXConstructorDecl>(*Lookup.first)) { |
| 98 | return Constructor->isCopyConstructor(Context, TypeQuals) && |
| 99 | (TypeQuals & QualType::Const != 0); |
Douglas Gregor | 396b7cd | 2008-11-03 17:51:48 +0000 | [diff] [blame] | 100 | } |
| 101 | return false; |
| 102 | } |
| 103 | |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 104 | void |
Douglas Gregor | 9e7d9de | 2008-12-15 21:24:18 +0000 | [diff] [blame^] | 105 | CXXRecordDecl::addedConstructor(ASTContext &Context, |
| 106 | CXXConstructorDecl *ConDecl) { |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 107 | if (!ConDecl->isImplicitlyDeclared()) { |
| 108 | // Note that we have a user-declared constructor. |
| 109 | UserDeclaredConstructor = true; |
| 110 | |
Douglas Gregor | 64bffa9 | 2008-11-05 16:20:31 +0000 | [diff] [blame] | 111 | // C++ [dcl.init.aggr]p1: |
| 112 | // An aggregate is an array or a class (clause 9) with no |
| 113 | // user-declared constructors (12.1) [...]. |
| 114 | Aggregate = false; |
| 115 | |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 116 | // Note when we have a user-declared copy constructor, which will |
| 117 | // suppress the implicit declaration of a copy constructor. |
| 118 | if (ConDecl->isCopyConstructor(Context)) |
| 119 | UserDeclaredCopyConstructor = true; |
| 120 | } |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 121 | } |
| 122 | |
Douglas Gregor | 2f1bc52 | 2008-11-07 20:08:42 +0000 | [diff] [blame] | 123 | void CXXRecordDecl::addConversionFunction(ASTContext &Context, |
| 124 | CXXConversionDecl *ConvDecl) { |
| 125 | Conversions.addOverload(ConvDecl); |
| 126 | } |
| 127 | |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 128 | CXXMethodDecl * |
| 129 | CXXMethodDecl::Create(ASTContext &C, CXXRecordDecl *RD, |
Douglas Gregor | 10bd368 | 2008-11-17 22:58:34 +0000 | [diff] [blame] | 130 | SourceLocation L, DeclarationName N, |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 131 | QualType T, bool isStatic, bool isInline, |
| 132 | ScopedDecl *PrevDecl) { |
| 133 | void *Mem = C.getAllocator().Allocate<CXXMethodDecl>(); |
Douglas Gregor | 10bd368 | 2008-11-17 22:58:34 +0000 | [diff] [blame] | 134 | return new (Mem) CXXMethodDecl(CXXMethod, RD, L, N, T, isStatic, isInline, |
| 135 | PrevDecl); |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | QualType CXXMethodDecl::getThisType(ASTContext &C) const { |
Argyrios Kyrtzidis | b0d178d | 2008-10-24 22:28:18 +0000 | [diff] [blame] | 139 | // C++ 9.3.2p1: The type of this in a member function of a class X is X*. |
| 140 | // If the member function is declared const, the type of this is const X*, |
| 141 | // if the member function is declared volatile, the type of this is |
| 142 | // volatile X*, and if the member function is declared const volatile, |
| 143 | // the type of this is const volatile X*. |
| 144 | |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 145 | assert(isInstance() && "No 'this' for static methods!"); |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 146 | QualType ClassTy = C.getTagDeclType(const_cast<CXXRecordDecl*>(getParent())); |
Argyrios Kyrtzidis | 971c4fa | 2008-10-24 21:46:40 +0000 | [diff] [blame] | 147 | ClassTy = ClassTy.getWithAdditionalQualifiers(getTypeQualifiers()); |
| 148 | return C.getPointerType(ClassTy).withConst(); |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 149 | } |
| 150 | |
Douglas Gregor | 7ad8390 | 2008-11-05 04:29:56 +0000 | [diff] [blame] | 151 | CXXBaseOrMemberInitializer:: |
| 152 | CXXBaseOrMemberInitializer(QualType BaseType, Expr **Args, unsigned NumArgs) |
| 153 | : Args(0), NumArgs(0) { |
| 154 | BaseOrMember = reinterpret_cast<uintptr_t>(BaseType.getTypePtr()); |
| 155 | assert((BaseOrMember & 0x01) == 0 && "Invalid base class type pointer"); |
| 156 | BaseOrMember |= 0x01; |
| 157 | |
| 158 | if (NumArgs > 0) { |
| 159 | this->NumArgs = NumArgs; |
| 160 | this->Args = new Expr*[NumArgs]; |
| 161 | for (unsigned Idx = 0; Idx < NumArgs; ++Idx) |
| 162 | this->Args[Idx] = Args[Idx]; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | CXXBaseOrMemberInitializer:: |
Douglas Gregor | 44b4321 | 2008-12-11 16:49:14 +0000 | [diff] [blame] | 167 | CXXBaseOrMemberInitializer(FieldDecl *Member, Expr **Args, unsigned NumArgs) |
Douglas Gregor | 7ad8390 | 2008-11-05 04:29:56 +0000 | [diff] [blame] | 168 | : Args(0), NumArgs(0) { |
| 169 | BaseOrMember = reinterpret_cast<uintptr_t>(Member); |
| 170 | assert((BaseOrMember & 0x01) == 0 && "Invalid member pointer"); |
| 171 | |
| 172 | if (NumArgs > 0) { |
| 173 | this->NumArgs = NumArgs; |
| 174 | this->Args = new Expr*[NumArgs]; |
| 175 | for (unsigned Idx = 0; Idx < NumArgs; ++Idx) |
| 176 | this->Args[Idx] = Args[Idx]; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | CXXBaseOrMemberInitializer::~CXXBaseOrMemberInitializer() { |
| 181 | delete [] Args; |
| 182 | } |
| 183 | |
Douglas Gregor | b48fe38 | 2008-10-31 09:07:45 +0000 | [diff] [blame] | 184 | CXXConstructorDecl * |
| 185 | CXXConstructorDecl::Create(ASTContext &C, CXXRecordDecl *RD, |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 186 | SourceLocation L, DeclarationName N, |
Douglas Gregor | b48fe38 | 2008-10-31 09:07:45 +0000 | [diff] [blame] | 187 | QualType T, bool isExplicit, |
| 188 | bool isInline, bool isImplicitlyDeclared) { |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 189 | assert(N.getNameKind() == DeclarationName::CXXConstructorName && |
| 190 | "Name must refer to a constructor"); |
Douglas Gregor | b48fe38 | 2008-10-31 09:07:45 +0000 | [diff] [blame] | 191 | void *Mem = C.getAllocator().Allocate<CXXConstructorDecl>(); |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 192 | return new (Mem) CXXConstructorDecl(RD, L, N, T, isExplicit, isInline, |
Douglas Gregor | b48fe38 | 2008-10-31 09:07:45 +0000 | [diff] [blame] | 193 | isImplicitlyDeclared); |
| 194 | } |
| 195 | |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 196 | bool CXXConstructorDecl::isDefaultConstructor() const { |
| 197 | // C++ [class.ctor]p5: |
Douglas Gregor | 64bffa9 | 2008-11-05 16:20:31 +0000 | [diff] [blame] | 198 | // A default constructor for a class X is a constructor of class |
| 199 | // X that can be called without an argument. |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 200 | return (getNumParams() == 0) || |
Douglas Gregor | f03d7c7 | 2008-11-05 15:29:30 +0000 | [diff] [blame] | 201 | (getNumParams() > 0 && getParamDecl(0)->getDefaultArg() != 0); |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 202 | } |
| 203 | |
| 204 | bool |
| 205 | CXXConstructorDecl::isCopyConstructor(ASTContext &Context, |
| 206 | unsigned &TypeQuals) const { |
| 207 | // C++ [class.copy]p2: |
Douglas Gregor | 64bffa9 | 2008-11-05 16:20:31 +0000 | [diff] [blame] | 208 | // A non-template constructor for class X is a copy constructor |
| 209 | // if its first parameter is of type X&, const X&, volatile X& or |
| 210 | // const volatile X&, and either there are no other parameters |
| 211 | // or else all other parameters have default arguments (8.3.6). |
Douglas Gregor | 030ff0c | 2008-10-31 20:25:05 +0000 | [diff] [blame] | 212 | if ((getNumParams() < 1) || |
| 213 | (getNumParams() > 1 && getParamDecl(1)->getDefaultArg() == 0)) |
| 214 | return false; |
| 215 | |
| 216 | const ParmVarDecl *Param = getParamDecl(0); |
| 217 | |
| 218 | // Do we have a reference type? |
| 219 | const ReferenceType *ParamRefType = Param->getType()->getAsReferenceType(); |
| 220 | if (!ParamRefType) |
| 221 | return false; |
| 222 | |
| 223 | // Is it a reference to our class type? |
| 224 | QualType PointeeType |
| 225 | = Context.getCanonicalType(ParamRefType->getPointeeType()); |
| 226 | QualType ClassTy |
| 227 | = Context.getTagDeclType(const_cast<CXXRecordDecl*>(getParent())); |
| 228 | if (PointeeType.getUnqualifiedType() != ClassTy) |
| 229 | return false; |
| 230 | |
| 231 | // We have a copy constructor. |
| 232 | TypeQuals = PointeeType.getCVRQualifiers(); |
| 233 | return true; |
| 234 | } |
| 235 | |
Douglas Gregor | 60d62c2 | 2008-10-31 16:23:19 +0000 | [diff] [blame] | 236 | bool CXXConstructorDecl::isConvertingConstructor() const { |
| 237 | // C++ [class.conv.ctor]p1: |
| 238 | // A constructor declared without the function-specifier explicit |
| 239 | // that can be called with a single parameter specifies a |
| 240 | // conversion from the type of its first parameter to the type of |
| 241 | // its class. Such a constructor is called a converting |
| 242 | // constructor. |
| 243 | if (isExplicit()) |
| 244 | return false; |
| 245 | |
| 246 | return (getNumParams() == 0 && |
| 247 | getType()->getAsFunctionTypeProto()->isVariadic()) || |
| 248 | (getNumParams() == 1) || |
| 249 | (getNumParams() > 1 && getParamDecl(1)->getDefaultArg() != 0); |
| 250 | } |
Douglas Gregor | b48fe38 | 2008-10-31 09:07:45 +0000 | [diff] [blame] | 251 | |
Douglas Gregor | 42a552f | 2008-11-05 20:51:48 +0000 | [diff] [blame] | 252 | CXXDestructorDecl * |
| 253 | CXXDestructorDecl::Create(ASTContext &C, CXXRecordDecl *RD, |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 254 | SourceLocation L, DeclarationName N, |
Douglas Gregor | 42a552f | 2008-11-05 20:51:48 +0000 | [diff] [blame] | 255 | QualType T, bool isInline, |
| 256 | bool isImplicitlyDeclared) { |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 257 | assert(N.getNameKind() == DeclarationName::CXXDestructorName && |
| 258 | "Name must refer to a destructor"); |
Douglas Gregor | 42a552f | 2008-11-05 20:51:48 +0000 | [diff] [blame] | 259 | void *Mem = C.getAllocator().Allocate<CXXDestructorDecl>(); |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 260 | return new (Mem) CXXDestructorDecl(RD, L, N, T, isInline, |
Douglas Gregor | 42a552f | 2008-11-05 20:51:48 +0000 | [diff] [blame] | 261 | isImplicitlyDeclared); |
| 262 | } |
| 263 | |
Douglas Gregor | 2f1bc52 | 2008-11-07 20:08:42 +0000 | [diff] [blame] | 264 | CXXConversionDecl * |
| 265 | CXXConversionDecl::Create(ASTContext &C, CXXRecordDecl *RD, |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 266 | SourceLocation L, DeclarationName N, |
Douglas Gregor | 2f1bc52 | 2008-11-07 20:08:42 +0000 | [diff] [blame] | 267 | QualType T, bool isInline, bool isExplicit) { |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 268 | assert(N.getNameKind() == DeclarationName::CXXConversionFunctionName && |
| 269 | "Name must refer to a conversion function"); |
Douglas Gregor | 2f1bc52 | 2008-11-07 20:08:42 +0000 | [diff] [blame] | 270 | void *Mem = C.getAllocator().Allocate<CXXConversionDecl>(); |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 271 | return new (Mem) CXXConversionDecl(RD, L, N, T, isInline, isExplicit); |
Douglas Gregor | 2f1bc52 | 2008-11-07 20:08:42 +0000 | [diff] [blame] | 272 | } |
| 273 | |
Ted Kremenek | 4b7c983 | 2008-09-05 17:16:31 +0000 | [diff] [blame] | 274 | CXXClassVarDecl *CXXClassVarDecl::Create(ASTContext &C, CXXRecordDecl *RD, |
| 275 | SourceLocation L, IdentifierInfo *Id, |
| 276 | QualType T, ScopedDecl *PrevDecl) { |
| 277 | void *Mem = C.getAllocator().Allocate<CXXClassVarDecl>(); |
| 278 | return new (Mem) CXXClassVarDecl(RD, L, Id, T, PrevDecl); |
| 279 | } |
Douglas Gregor | 8e9bebd | 2008-10-21 16:13:35 +0000 | [diff] [blame] | 280 | |
| 281 | OverloadedFunctionDecl * |
| 282 | OverloadedFunctionDecl::Create(ASTContext &C, DeclContext *DC, |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 283 | DeclarationName N) { |
Douglas Gregor | 8e9bebd | 2008-10-21 16:13:35 +0000 | [diff] [blame] | 284 | void *Mem = C.getAllocator().Allocate<OverloadedFunctionDecl>(); |
Douglas Gregor | 2e1cd42 | 2008-11-17 14:58:09 +0000 | [diff] [blame] | 285 | return new (Mem) OverloadedFunctionDecl(DC, N); |
Douglas Gregor | 8e9bebd | 2008-10-21 16:13:35 +0000 | [diff] [blame] | 286 | } |
Chris Lattner | 21ef7ae | 2008-11-04 16:51:42 +0000 | [diff] [blame] | 287 | |
| 288 | LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C, |
| 289 | SourceLocation L, |
| 290 | LanguageIDs Lang, Decl *D) { |
| 291 | void *Mem = C.getAllocator().Allocate<LinkageSpecDecl>(); |
| 292 | return new (Mem) LinkageSpecDecl(L, Lang, D); |
| 293 | } |
| 294 | |