]> granicus.if.org Git - clang/blob - include/clang/Basic/LLVM.h
introduce a centralized place to introduce and inject llvm types into the
[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.
19 #include "llvm/Support/Casting.h"
20
21 namespace clang {
22   // Casting operators.
23   using llvm::isa;
24   using llvm::cast;
25   using llvm::dyn_cast;
26   using llvm::dyn_cast_or_null;
27   using llvm::cast_or_null;
28 } // end namespace clang.
29
30 #endif