]> granicus.if.org Git - clang/blob - include/clang/Basic/LLVM.h
Basic: import OwningPtr<> into clang namespace
[clang] / include / clang / Basic / LLVM.h
1 //===--- LLVM.h - Import various common LLVM datatypes ----------*- 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 forward declares and imports various common LLVM datatypes that
11 // clang wants to use unqualified.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef CLANG_BASIC_LLVM_H
16 #define CLANG_BASIC_LLVM_H
17
18 // This should be the only #include, force #includes of all the others on
19 // clients.
20 #include "llvm/Support/Casting.h"
21
22 namespace llvm {
23   // ADT's.
24   class StringRef;
25   class Twine;
26   template<typename T> class ArrayRef;
27   template<class T> class OwningPtr;
28   template<typename T, unsigned N> class SmallVector;
29   template<typename T> class SmallVectorImpl;
30
31   class raw_ostream;
32   // TODO: DenseMap, ...
33 }
34
35
36 namespace clang {
37   // Casting operators.
38   using llvm::isa;
39   using llvm::cast;
40   using llvm::dyn_cast;
41   using llvm::dyn_cast_or_null;
42   using llvm::cast_or_null;
43   
44   // ADT's.
45   using llvm::StringRef;
46   using llvm::Twine;
47   using llvm::ArrayRef;
48   using llvm::OwningPtr;
49   using llvm::SmallVector;
50   using llvm::SmallVectorImpl;
51   
52   using llvm::raw_ostream;
53 } // end namespace clang.
54
55 #endif