1 //===--- LLVM.h - Import various common LLVM datatypes ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Forward declares and imports various common LLVM datatypes that
12 /// clang wants to use unqualified.
14 //===----------------------------------------------------------------------===//
16 #ifndef CLANG_BASIC_LLVM_H
17 #define CLANG_BASIC_LLVM_H
19 // This should be the only #include, force #includes of all the others on
21 #include "llvm/Support/Casting.h"
27 template<typename T> class ArrayRef;
28 template<class T> class OwningPtr;
29 template<unsigned InternalLen> class SmallString;
30 template<typename T, unsigned N> class SmallVector;
31 template<typename T> class SmallVectorImpl;
34 struct SaveAndRestore;
36 // Reference counting.
37 template <typename T> class IntrusiveRefCntPtr;
38 template <typename T> struct IntrusiveRefCntPtrInfo;
39 template <class Derived> class RefCountedBase;
40 class RefCountedBaseVPTR;
43 // TODO: DenseMap, ...
52 using llvm::dyn_cast_or_null;
53 using llvm::cast_or_null;
56 using llvm::StringRef;
59 using llvm::OwningPtr;
60 using llvm::SmallString;
61 using llvm::SmallVector;
62 using llvm::SmallVectorImpl;
63 using llvm::SaveAndRestore;
65 // Reference counting.
66 using llvm::IntrusiveRefCntPtr;
67 using llvm::IntrusiveRefCntPtrInfo;
68 using llvm::RefCountedBase;
69 using llvm::RefCountedBaseVPTR;
71 using llvm::raw_ostream;
72 } // end namespace clang.