1193326Sed//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===// 2193326Sed// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6193326Sed// 7193326Sed//===----------------------------------------------------------------------===// 8193326Sed// 9193326Sed// This file defines the ASTConsumer class. 10193326Sed// 11193326Sed//===----------------------------------------------------------------------===// 12193326Sed 13193326Sed#include "clang/AST/ASTConsumer.h" 14249423Sdim#include "clang/AST/Decl.h" 15193326Sed#include "clang/AST/DeclGroup.h" 16193326Sedusing namespace clang; 17193326Sed 18234353Sdimbool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) { 19234353Sdim return true; 20234353Sdim} 21193326Sed 22212904Sdimvoid ASTConsumer::HandleInterestingDecl(DeclGroupRef D) { 23212904Sdim HandleTopLevelDecl(D); 24212904Sdim} 25234353Sdim 26234353Sdimvoid ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {} 27243830Sdim 28243830Sdimvoid ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) { 29243830Sdim HandleTopLevelDecl(DeclGroupRef(D)); 30243830Sdim} 31