]> granicus.if.org Git - clang/blob - include/clang/Basic/LLVM.h
Fix typos
[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 /// \file
11 /// \brief Forward-declares and imports various common LLVM datatypes that
12 /// clang wants to use unqualified.
13 ///
14 //===----------------------------------------------------------------------===//
15
16 #ifndef CLANG_BASIC_LLVM_H
17 #define CLANG_BASIC_LLVM_H
18
19 // Do not proliferate #includes here, require clients to #include their
20 // dependencies.
21 // Casting.h has complex templates that cannot be easily forward declared.
22 #include "llvm/Support/Casting.h"
23 // None.h includes an enumerator that is desired & cannot be forward declared
24 // without a definition of NoneType.
25 #include "llvm/ADT/None.h"
26
27 namespace llvm {
28   // ADT's.
29   class StringRef;
30   class Twine;
31   template<typename T> class ArrayRef;
32   template<unsigned InternalLen> class SmallString;
33   template<typename T, unsigned N> class SmallVector;
34   template<typename T> class SmallVectorImpl;
35   template<typename T> class Optional;
36
37   template<typename T>
38   struct SaveAndRestore;
39
40   // Reference counting.
41   template <typename T> class IntrusiveRefCntPtr;
42   template <typename T> struct IntrusiveRefCntPtrInfo;
43   template <class Derived> class RefCountedBase;
44   class RefCountedBaseVPTR;
45
46   class raw_ostream;
47   // TODO: DenseMap, ...
48 }
49
50
51 namespace clang {
52   // Casting operators.
53   using llvm::isa;
54   using llvm::cast;
55   using llvm::dyn_cast;
56   using llvm::dyn_cast_or_null;
57   using llvm::cast_or_null;
58   
59   // ADT's.
60   using llvm::None;
61   using llvm::Optional;
62   using llvm::StringRef;
63   using llvm::Twine;
64   using llvm::ArrayRef;
65   using llvm::SmallString;
66   using llvm::SmallVector;
67   using llvm::SmallVectorImpl;
68   using llvm::SaveAndRestore;
69
70   // Reference counting.
71   using llvm::IntrusiveRefCntPtr;
72   using llvm::IntrusiveRefCntPtrInfo;
73   using llvm::RefCountedBase;
74   using llvm::RefCountedBaseVPTR;
75
76   using llvm::raw_ostream;
77 } // end namespace clang.
78
79 #endif