2007-11-30 07:05:17 +08:00
|
|
|
//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2007-11-30 07:05:17 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the ASTConsumer class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "clang/AST/ASTConsumer.h"
|
2012-10-03 09:58:37 +08:00
|
|
|
#include "clang/AST/Decl.h"
|
2012-12-04 17:13:33 +08:00
|
|
|
#include "clang/AST/DeclGroup.h"
|
2007-11-30 07:05:17 +08:00
|
|
|
using namespace clang;
|
|
|
|
|
2011-11-18 08:26:59 +08:00
|
|
|
bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
|
|
|
|
return true;
|
|
|
|
}
|
2009-03-30 00:50:03 +08:00
|
|
|
|
2010-08-12 02:52:41 +08:00
|
|
|
void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
|
|
|
|
HandleTopLevelDecl(D);
|
|
|
|
}
|
2011-10-18 03:48:13 +08:00
|
|
|
|
|
|
|
void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
|
2012-10-03 09:58:37 +08:00
|
|
|
|
|
|
|
void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
|
|
|
|
HandleTopLevelDecl(DeclGroupRef(D));
|
|
|
|
}
|