etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / lib / AST / ASTConsumer.cpp
blob55033b238c660bbb781d0595112a3728df96099d
1 //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- 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 defines the ASTConsumer class.
12 //===----------------------------------------------------------------------===//
14 #include "clang/AST/ASTConsumer.h"
15 #include "clang/AST/Decl.h"
16 #include "clang/AST/DeclGroup.h"
17 using namespace clang;
19 bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
20 return true;
23 void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
24 HandleTopLevelDecl(D);
27 void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
29 void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
30 HandleTopLevelDecl(DeclGroupRef(D));