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 //===----------------------------------------------------------------------===//
10 // This file forward declares and imports various common LLVM datatypes that
11 // clang wants to use unqualified.
13 //===----------------------------------------------------------------------===//
15 #ifndef CLANG_BASIC_LLVM_H
16 #define CLANG_BASIC_LLVM_H
18 // This should be the only #include, force #includes of all the others on
20 #include "llvm/Support/Casting.h"
26 template<typename T> class ArrayRef;
27 template<class T> class OwningPtr;
28 template<unsigned InternalLen> class SmallString;
29 template<typename T, unsigned N> class SmallVector;
30 template<typename T> class SmallVectorImpl;
33 // TODO: DenseMap, ...
42 using llvm::dyn_cast_or_null;
43 using llvm::cast_or_null;
46 using llvm::StringRef;
49 using llvm::OwningPtr;
50 using llvm::SmallString;
51 using llvm::SmallVector;
52 using llvm::SmallVectorImpl;
54 using llvm::raw_ostream;
55 } // end namespace clang.