Path: blob/main/contrib/llvm-project/clang/lib/AST/ASTConsumer.cpp
35259 views
//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file defines the ASTConsumer class.9//10//===----------------------------------------------------------------------===//1112#include "clang/AST/ASTConsumer.h"13#include "clang/AST/Decl.h"14#include "clang/AST/DeclGroup.h"15using namespace clang;1617bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {18return true;19}2021void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {22HandleTopLevelDecl(D);23}2425void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}2627void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {28HandleTopLevelDecl(DeclGroupRef(D));29}303132