2009-06-02 13:58:47 -04:00
|
|
|
//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// This file defines the ASTConsumer class.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "clang/AST/ASTConsumer.h"
|
|
|
|
|
#include "clang/AST/DeclGroup.h"
|
2012-12-02 08:20:44 -05:00
|
|
|
#include "clang/AST/Decl.h"
|
2009-06-02 13:58:47 -04:00
|
|
|
using namespace clang;
|
|
|
|
|
|
2012-04-14 10:01:31 -04:00
|
|
|
bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2009-06-02 13:58:47 -04:00
|
|
|
|
2010-09-17 11:54:40 -04:00
|
|
|
void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
|
|
|
|
|
HandleTopLevelDecl(D);
|
|
|
|
|
}
|
2012-04-14 10:01:31 -04:00
|
|
|
|
|
|
|
|
void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
|
2012-12-02 08:20:44 -05:00
|
|
|
|
|
|
|
|
void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
|
|
|
|
|
HandleTopLevelDecl(DeclGroupRef(D));
|
|
|
|
|
}
|