blob: 6bba8f1f80a9339fcc239eb5a6969ada93c96648 [file] [log] [blame]
Ted Kremenekbfcf8cd2007-11-29 23:05:17 +00001//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Ted Kremenekbfcf8cd2007-11-29 23:05:17 +00006//
7//===----------------------------------------------------------------------===//
8//
9// This file defines the ASTConsumer class.
10//
11//===----------------------------------------------------------------------===//
12
13#include "clang/AST/ASTConsumer.h"
Argyrios Kyrtzidis72d1aa32012-10-03 01:58:37 +000014#include "clang/AST/Decl.h"
Chandler Carruth3a022472012-12-04 09:13:33 +000015#include "clang/AST/DeclGroup.h"
Ted Kremenekbfcf8cd2007-11-29 23:05:17 +000016using namespace clang;
17
Argyrios Kyrtzidis841dd882011-11-18 00:26:59 +000018bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
19 return true;
20}
Chris Lattner5bbb3c82009-03-29 16:50:03 +000021
Sebastian Redleaa4ade2010-08-11 18:52:41 +000022void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
23 HandleTopLevelDecl(D);
24}
Argyrios Kyrtzidisbd8b1502011-10-17 19:48:13 +000025
26void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
Argyrios Kyrtzidis72d1aa32012-10-03 01:58:37 +000027
28void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
29 HandleTopLevelDecl(DeclGroupRef(D));
30}