1//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8//
9// This file defines the ASTConsumer class.
10//
11//===----------------------------------------------------------------------===//
12
13#include "clang/AST/ASTConsumer.h"
14#include "clang/AST/Decl.h"
15#include "clang/AST/DeclGroup.h"
16using namespace clang;
17
18bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
19 return true;
20}
21
22void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
23 HandleTopLevelDecl(D);
24}
25
26void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
27
28void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
29 HandleTopLevelDecl(D: DeclGroupRef(D));
30}
31

source code of clang/lib/AST/ASTConsumer.cpp