| Ted Kremenek | 2ff3e69 | 2007-11-29 23:05:17 +0000 | [diff] [blame] | 1 | //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===// | 
 | 2 | // | 
 | 3 | //                     The LLVM Compiler Infrastructure | 
 | 4 | // | 
| Chris Lattner | 0bc735f | 2007-12-29 19:59:25 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source | 
 | 6 | // License. See LICENSE.TXT for details. | 
| Ted Kremenek | 2ff3e69 | 2007-11-29 23:05:17 +0000 | [diff] [blame] | 7 | // | 
 | 8 | //===----------------------------------------------------------------------===// | 
 | 9 | // | 
 | 10 | //  This file defines the ASTConsumer class. | 
 | 11 | // | 
 | 12 | //===----------------------------------------------------------------------===// | 
 | 13 |  | 
 | 14 | #include "clang/AST/ASTConsumer.h" | 
 | 15 | #include "clang/AST/Decl.h" | 
| Ted Kremenek | e3a6198 | 2008-05-31 20:11:04 +0000 | [diff] [blame] | 16 | #include "clang/AST/TranslationUnit.h" | 
 | 17 |  | 
| Ted Kremenek | 2ff3e69 | 2007-11-29 23:05:17 +0000 | [diff] [blame] | 18 | using namespace clang; | 
 | 19 |  | 
| Chris Lattner | 8ee3c03 | 2008-02-06 02:01:47 +0000 | [diff] [blame] | 20 | ASTConsumer::~ASTConsumer() {} | 
 | 21 |  | 
| Ted Kremenek | e3a6198 | 2008-05-31 20:11:04 +0000 | [diff] [blame] | 22 | void ASTConsumer::InitializeTU(TranslationUnit& TU) { | 
 | 23 |   Initialize(TU.getContext()); | 
 | 24 | } |