1 //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file defines the ASTConsumer class.
11 //===----------------------------------------------------------------------===//
13 #include "clang/AST/ASTConsumer.h"
14 #include "clang/AST/Decl.h"
15 #include "clang/AST/DeclGroup.h"
16 using namespace clang
;
18 bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D
) {
22 void ASTConsumer::HandleInterestingDecl(DeclGroupRef D
) {
23 HandleTopLevelDecl(D
);
26 void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D
) {}
28 void ASTConsumer::HandleImplicitImportDecl(ImportDecl
*D
) {
29 HandleTopLevelDecl(DeclGroupRef(D
));