Ted Kremenek | bfcf8cd | 2007-11-29 23:05:17 +0000 | [diff] [blame] | 1 | //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Ted Kremenek | bfcf8cd | 2007-11-29 23:05:17 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file defines the ASTConsumer class. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "clang/AST/ASTConsumer.h" |
Argyrios Kyrtzidis | 72d1aa3 | 2012-10-03 01:58:37 +0000 | [diff] [blame] | 14 | #include "clang/AST/Decl.h" |
Chandler Carruth | 3a02247 | 2012-12-04 09:13:33 +0000 | [diff] [blame] | 15 | #include "clang/AST/DeclGroup.h" |
Ted Kremenek | bfcf8cd | 2007-11-29 23:05:17 +0000 | [diff] [blame] | 16 | using namespace clang; |
| 17 | |
Argyrios Kyrtzidis | 841dd88 | 2011-11-18 00:26:59 +0000 | [diff] [blame] | 18 | bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) { |
| 19 | return true; |
| 20 | } |
Chris Lattner | 5bbb3c8 | 2009-03-29 16:50:03 +0000 | [diff] [blame] | 21 | |
Sebastian Redl | eaa4ade | 2010-08-11 18:52:41 +0000 | [diff] [blame] | 22 | void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) { |
| 23 | HandleTopLevelDecl(D); |
| 24 | } |
Argyrios Kyrtzidis | bd8b150 | 2011-10-17 19:48:13 +0000 | [diff] [blame] | 25 | |
| 26 | void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {} |
Argyrios Kyrtzidis | 72d1aa3 | 2012-10-03 01:58:37 +0000 | [diff] [blame] | 27 | |
| 28 | void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) { |
| 29 | HandleTopLevelDecl(DeclGroupRef(D)); |
| 30 | } |