Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 1 | //===-- DeclBase.h - Base Classes for representing declarations *- C++ -*-===// |
| 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 | // |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 10 | // This file defines the Decl and DeclContext interfaces. |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_CLANG_AST_DECLBASE_H |
| 15 | #define LLVM_CLANG_AST_DECLBASE_H |
| 16 | |
| 17 | #include "clang/AST/Attr.h" |
| 18 | #include "clang/AST/Type.h" |
| 19 | #include "clang/Basic/SourceLocation.h" |
| 20 | |
| 21 | namespace clang { |
Argyrios Kyrtzidis | ef17782 | 2008-04-17 14:40:12 +0000 | [diff] [blame^] | 22 | class TranslationUnitDecl; |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 23 | class FunctionDecl; |
| 24 | class ObjCMethodDecl; |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 25 | class EnumDecl; |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 26 | class ObjCInterfaceDecl; |
| 27 | |
| 28 | /// Decl - This represents one declaration (or definition), e.g. a variable, |
| 29 | /// typedef, function, struct, etc. |
| 30 | /// |
| 31 | class Decl { |
| 32 | public: |
| 33 | enum Kind { |
| 34 | // This lists the concrete classes of Decl in order of the inheritance |
| 35 | // hierarchy. This allows us to do efficient classof tests based on the |
| 36 | // enums below. The commented out names are abstract class names. |
| 37 | |
| 38 | // Decl |
Argyrios Kyrtzidis | ef17782 | 2008-04-17 14:40:12 +0000 | [diff] [blame^] | 39 | TranslationUnit, |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 40 | // NamedDecl |
| 41 | Field, |
| 42 | ObjCIvar, |
| 43 | ObjCCategory, |
| 44 | ObjCCategoryImpl, |
| 45 | ObjCImplementation, |
| 46 | ObjCProtocol, |
Sam Bishop | 670aa9d | 2008-04-08 20:49:25 +0000 | [diff] [blame] | 47 | ObjCProperty, |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 48 | // ScopedDecl |
| 49 | // TypeDecl |
| 50 | Typedef, |
| 51 | // TagDecl |
| 52 | Enum, |
| 53 | // RecordDecl |
| 54 | Struct, |
| 55 | Union, |
| 56 | Class, |
| 57 | // ValueDecl |
| 58 | EnumConstant, |
| 59 | Function, |
Steve Naroff | 248a753 | 2008-04-15 22:42:06 +0000 | [diff] [blame] | 60 | Var, |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 61 | ParmVar, |
| 62 | ObjCInterface, |
| 63 | ObjCCompatibleAlias, |
| 64 | ObjCMethod, |
| 65 | ObjCClass, |
| 66 | ObjCForwardProtocol, |
Fariborz Jahanian | 61d4615 | 2008-04-16 22:00:24 +0000 | [diff] [blame] | 67 | ObjCPropertyImpl, |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 68 | LinkageSpec, |
| 69 | FileScopeAsm, |
| 70 | |
| 71 | // For each non-leaf class, we now define a mapping to the first/last member |
| 72 | // of the class, to allow efficient classof. |
| 73 | NamedFirst = Field, NamedLast = ParmVar, |
| 74 | FieldFirst = Field, FieldLast = ObjCIvar, |
| 75 | ScopedFirst = Typedef, ScopedLast = ParmVar, |
| 76 | TypeFirst = Typedef, TypeLast = Class, |
| 77 | TagFirst = Enum , TagLast = Class, |
| 78 | RecordFirst = Struct , RecordLast = Class, |
| 79 | ValueFirst = EnumConstant , ValueLast = ParmVar, |
Steve Naroff | 248a753 | 2008-04-15 22:42:06 +0000 | [diff] [blame] | 80 | VarFirst = Var , VarLast = ParmVar |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | /// IdentifierNamespace - According to C99 6.2.3, there are four namespaces, |
Douglas Gregor | 2ce52f3 | 2008-04-13 21:07:44 +0000 | [diff] [blame] | 84 | /// labels, tags, members and ordinary identifiers. These are meant |
| 85 | /// as bitmasks, so that searches in C++ can look into the "tag" namespace |
| 86 | /// during ordinary lookup. |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 87 | enum IdentifierNamespace { |
Douglas Gregor | 2ce52f3 | 2008-04-13 21:07:44 +0000 | [diff] [blame] | 88 | IDNS_Label = 0x1, |
| 89 | IDNS_Tag = 0x2, |
| 90 | IDNS_Member = 0x4, |
| 91 | IDNS_Ordinary = 0x8 |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | /// ObjCDeclQualifier - Qualifier used on types in method declarations |
| 95 | /// for remote messaging. They are meant for the arguments though and |
| 96 | /// applied to the Decls (ObjCMethodDecl and ParmVarDecl). |
| 97 | enum ObjCDeclQualifier { |
| 98 | OBJC_TQ_None = 0x0, |
| 99 | OBJC_TQ_In = 0x1, |
| 100 | OBJC_TQ_Inout = 0x2, |
| 101 | OBJC_TQ_Out = 0x4, |
| 102 | OBJC_TQ_Bycopy = 0x8, |
| 103 | OBJC_TQ_Byref = 0x10, |
| 104 | OBJC_TQ_Oneway = 0x20 |
| 105 | }; |
| 106 | |
| 107 | private: |
| 108 | /// Loc - The location that this decl. |
| 109 | SourceLocation Loc; |
| 110 | |
| 111 | /// DeclKind - This indicates which class this is. |
| 112 | Kind DeclKind : 8; |
| 113 | |
| 114 | /// InvalidDecl - This indicates a semantic error occurred. |
| 115 | unsigned int InvalidDecl : 1; |
| 116 | |
| 117 | /// HasAttrs - This indicates whether the decl has attributes or not. |
| 118 | unsigned int HasAttrs : 1; |
| 119 | protected: |
| 120 | Decl(Kind DK, SourceLocation L) : Loc(L), DeclKind(DK), InvalidDecl(0), |
| 121 | HasAttrs(false) { |
| 122 | if (Decl::CollectingStats()) addDeclKind(DK); |
| 123 | } |
Sam Bishop | 1bb1963 | 2008-04-11 18:04:39 +0000 | [diff] [blame] | 124 | |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 125 | virtual ~Decl(); |
Sam Bishop | 1bb1963 | 2008-04-11 18:04:39 +0000 | [diff] [blame] | 126 | |
| 127 | public: |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 128 | SourceLocation getLocation() const { return Loc; } |
| 129 | void setLocation(SourceLocation L) { Loc = L; } |
| 130 | |
| 131 | Kind getKind() const { return DeclKind; } |
| 132 | const char *getDeclKindName() const; |
| 133 | |
| 134 | void addAttr(Attr *attr); |
| 135 | const Attr *getAttrs() const; |
| 136 | |
| 137 | template<typename T> const T *getAttr() const { |
| 138 | for (const Attr *attr = getAttrs(); attr; attr = attr->getNext()) |
| 139 | if (const T *V = dyn_cast<T>(attr)) |
| 140 | return V; |
| 141 | |
| 142 | return 0; |
| 143 | } |
| 144 | |
| 145 | /// setInvalidDecl - Indicates the Decl had a semantic error. This |
| 146 | /// allows for graceful error recovery. |
| 147 | void setInvalidDecl() { InvalidDecl = 1; } |
| 148 | bool isInvalidDecl() const { return (bool) InvalidDecl; } |
| 149 | |
| 150 | IdentifierNamespace getIdentifierNamespace() const { |
| 151 | switch (DeclKind) { |
| 152 | default: assert(0 && "Unknown decl kind!"); |
| 153 | case Typedef: |
| 154 | case Function: |
Steve Naroff | 248a753 | 2008-04-15 22:42:06 +0000 | [diff] [blame] | 155 | case Var: |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 156 | case ParmVar: |
| 157 | case EnumConstant: |
| 158 | case ObjCInterface: |
| 159 | case ObjCCompatibleAlias: |
| 160 | return IDNS_Ordinary; |
| 161 | case Struct: |
| 162 | case Union: |
| 163 | case Class: |
| 164 | case Enum: |
| 165 | return IDNS_Tag; |
| 166 | } |
| 167 | } |
| 168 | // global temp stats (until we have a per-module visitor) |
| 169 | static void addDeclKind(Kind k); |
| 170 | static bool CollectingStats(bool Enable = false); |
| 171 | static void PrintStats(); |
| 172 | |
| 173 | // Implement isa/cast/dyncast/etc. |
| 174 | static bool classof(const Decl *) { return true; } |
| 175 | |
| 176 | /// Emit - Serialize this Decl to Bitcode. |
| 177 | void Emit(llvm::Serializer& S) const; |
| 178 | |
| 179 | /// Create - Deserialize a Decl from Bitcode. |
Sam Bishop | e2563ca | 2008-04-07 21:55:54 +0000 | [diff] [blame] | 180 | static Decl* Create(llvm::Deserializer& D, ASTContext& C); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 181 | |
Sam Bishop | bb45c51 | 2008-04-11 15:01:25 +0000 | [diff] [blame] | 182 | /// Destroy - Call destructors and release memory. |
| 183 | void Destroy(ASTContext& C) const; |
| 184 | |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 185 | protected: |
| 186 | /// EmitImpl - Provides the subclass-specific serialization logic for |
| 187 | /// serializing out a decl. |
| 188 | virtual void EmitImpl(llvm::Serializer& S) const { |
| 189 | // FIXME: This will eventually be a pure virtual function. |
| 190 | assert (false && "Not implemented."); |
| 191 | } |
| 192 | |
| 193 | void EmitInRec(llvm::Serializer& S) const; |
Sam Bishop | e2563ca | 2008-04-07 21:55:54 +0000 | [diff] [blame] | 194 | void ReadInRec(llvm::Deserializer& D, ASTContext& C); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 195 | }; |
| 196 | |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 197 | /// DeclContext - This is used only as base class of specific decl types that |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 198 | /// can act as declaration contexts. These decls are: |
| 199 | /// |
Argyrios Kyrtzidis | ef17782 | 2008-04-17 14:40:12 +0000 | [diff] [blame^] | 200 | /// TranslationUnitDecl |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 201 | /// FunctionDecl |
| 202 | /// ObjCMethodDecl |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 203 | /// EnumDecl |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 204 | /// ObjCInterfaceDecl |
| 205 | /// |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 206 | class DeclContext { |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 207 | /// DeclKind - This indicates which class this is. |
| 208 | Decl::Kind DeclKind : 8; |
| 209 | |
| 210 | // Used in the CastTo template to get the DeclKind |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 211 | // from a Decl or a DeclContext. DeclContext doesn't have a getKind() method |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 212 | // to avoid 'ambiguous access' compiler errors. |
| 213 | template<typename T> struct KindTrait { |
| 214 | static Decl::Kind getKind(const T *D) { return D->getKind(); } |
| 215 | }; |
| 216 | |
| 217 | // Used only by the ToDecl and FromDecl methods |
| 218 | template<typename To, typename From> |
| 219 | static To *CastTo(const From *D) { |
| 220 | Decl::Kind DK = KindTrait<From>::getKind(D); |
| 221 | switch(DK) { |
Argyrios Kyrtzidis | ef17782 | 2008-04-17 14:40:12 +0000 | [diff] [blame^] | 222 | case Decl::TranslationUnit: |
| 223 | return static_cast<TranslationUnitDecl*>(const_cast<From*>(D)); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 224 | case Decl::Function: |
| 225 | return static_cast<FunctionDecl*>(const_cast<From*>(D)); |
| 226 | case Decl::ObjCMethod: |
| 227 | return static_cast<ObjCMethodDecl*>(const_cast<From*>(D)); |
| 228 | case Decl::ObjCInterface: |
| 229 | return static_cast<ObjCInterfaceDecl*>(const_cast<From*>(D)); |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 230 | case Decl::Enum: |
| 231 | return static_cast<EnumDecl*>(const_cast<From*>(D)); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 232 | default: |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 233 | assert(false && "a decl that inherits DeclContext isn't handled"); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 234 | return 0; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | protected: |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 239 | DeclContext(Decl::Kind K) : DeclKind(K) {} |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 240 | |
| 241 | public: |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 242 | /// getParent - Returns the containing DeclContext if this is a ScopedDecl, |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 243 | /// else returns NULL. |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 244 | DeclContext *getParent() const; |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 245 | |
| 246 | bool isFunctionOrMethod() const { |
| 247 | switch (DeclKind) { |
| 248 | case Decl::Function: |
| 249 | case Decl::ObjCMethod: |
| 250 | return true; |
| 251 | default: |
| 252 | return false; |
| 253 | } |
| 254 | } |
| 255 | |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 256 | /// ToDecl and FromDecl make Decl <-> DeclContext castings. |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 257 | /// They are intended to be used by the simplify_type and cast_convert_val |
| 258 | /// templates. |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 259 | static Decl *ToDecl (const DeclContext *D); |
| 260 | static DeclContext *FromDecl (const Decl *D); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 261 | |
| 262 | static bool classof(const Decl *D) { |
| 263 | switch (D->getKind()) { |
Argyrios Kyrtzidis | ef17782 | 2008-04-17 14:40:12 +0000 | [diff] [blame^] | 264 | case Decl::TranslationUnit: |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 265 | case Decl::Function: |
| 266 | case Decl::ObjCMethod: |
| 267 | case Decl::ObjCInterface: |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 268 | case Decl::Enum: |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 269 | return true; |
| 270 | default: |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 271 | return false; |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 272 | } |
| 273 | } |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 274 | static bool classof(const DeclContext *D) { return true; } |
Argyrios Kyrtzidis | ef17782 | 2008-04-17 14:40:12 +0000 | [diff] [blame^] | 275 | static bool classof(const TranslationUnitDecl *D) { return true; } |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 276 | static bool classof(const FunctionDecl *D) { return true; } |
| 277 | static bool classof(const ObjCMethodDecl *D) { return true; } |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 278 | static bool classof(const EnumDecl *D) { return true; } |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 279 | static bool classof(const ObjCInterfaceDecl *D) { return true; } |
| 280 | }; |
| 281 | |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 282 | template<> struct DeclContext::KindTrait<DeclContext> { |
| 283 | static Decl::Kind getKind(const DeclContext *D) { return D->DeclKind; } |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 284 | }; |
| 285 | |
| 286 | } // end clang. |
| 287 | |
| 288 | namespace llvm { |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 289 | /// Implement simplify_type for DeclContext, so that we can dyn_cast from |
| 290 | /// DeclContext to a specific Decl class. |
| 291 | template<> struct simplify_type<const ::clang::DeclContext*> { |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 292 | typedef ::clang::Decl* SimpleType; |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 293 | static SimpleType getSimplifiedValue(const ::clang::DeclContext *Val) { |
| 294 | return ::clang::DeclContext::ToDecl(Val); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 295 | } |
| 296 | }; |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 297 | template<> struct simplify_type< ::clang::DeclContext*> |
| 298 | : public simplify_type<const ::clang::DeclContext*> {}; |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 299 | |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 300 | template<> struct simplify_type<const ::clang::DeclContext> { |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 301 | typedef ::clang::Decl SimpleType; |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 302 | static SimpleType &getSimplifiedValue(const ::clang::DeclContext &Val) { |
| 303 | return *::clang::DeclContext::ToDecl(&Val); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 304 | } |
| 305 | }; |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 306 | template<> struct simplify_type< ::clang::DeclContext> |
| 307 | : public simplify_type<const ::clang::DeclContext> {}; |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 308 | |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 309 | /// Implement cast_convert_val for DeclContext, so that we can dyn_cast from |
| 310 | /// a Decl class to DeclContext. |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 311 | template<class FromTy> |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 312 | struct cast_convert_val< ::clang::DeclContext,const FromTy,const FromTy> { |
| 313 | static ::clang::DeclContext &doit(const FromTy &Val) { |
| 314 | return *::clang::DeclContext::FromDecl(&Val); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 315 | } |
| 316 | }; |
| 317 | template<class FromTy> |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 318 | struct cast_convert_val< ::clang::DeclContext,FromTy,FromTy> |
| 319 | : public cast_convert_val< ::clang::DeclContext,const FromTy,const FromTy> |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 320 | {}; |
| 321 | |
| 322 | template<class FromTy> |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 323 | struct cast_convert_val< ::clang::DeclContext,const FromTy*,const FromTy*> { |
| 324 | static ::clang::DeclContext *doit(const FromTy *Val) { |
| 325 | return ::clang::DeclContext::FromDecl(Val); |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 326 | } |
| 327 | }; |
| 328 | template<class FromTy> |
Chris Lattner | b048c98 | 2008-04-06 04:47:34 +0000 | [diff] [blame] | 329 | struct cast_convert_val< ::clang::DeclContext,FromTy*,FromTy*> |
| 330 | : public cast_convert_val< ::clang::DeclContext,const FromTy*,const FromTy*> |
Chris Lattner | 0ed844b | 2008-04-04 06:12:32 +0000 | [diff] [blame] | 331 | {}; |
| 332 | |
| 333 | } // end namespace llvm |
| 334 | |
| 335 | #endif |