Home | History | Annotate | Download | only in Sema
      1 //===--- ObjCMethodList.h - A singly linked list of methods -----*- 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 //
     10 // This file defines ObjCMethodList, a singly-linked list of methods.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 
     14 #ifndef LLVM_CLANG_SEMA_OBJC_METHOD_LIST_H
     15 #define LLVM_CLANG_SEMA_OBJC_METHOD_LIST_H
     16 
     17 namespace clang {
     18 
     19 class ObjCMethodDecl;
     20 
     21 /// ObjCMethodList - a linked list of methods with different signatures.
     22 struct ObjCMethodList {
     23   ObjCMethodDecl *Method;
     24   ObjCMethodList *Next;
     25 
     26   ObjCMethodList() {
     27     Method = 0;
     28     Next = 0;
     29   }
     30   ObjCMethodList(ObjCMethodDecl *M, ObjCMethodList *C) {
     31     Method = M;
     32     Next = C;
     33   }
     34 };
     35 
     36 }
     37 
     38 #endif
     39