Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/AST/ASTConsumer.cpp
Line
Count
Source
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"
16
using namespace clang;
17
18
506k
bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
19
506k
  return true;
20
506k
}
21
22
4.28k
void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
23
4.28k
  HandleTopLevelDecl(D);
24
4.28k
}
25
26
3.00k
void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
27
28
6.85k
void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
29
6.85k
  HandleTopLevelDecl(DeclGroupRef(D));
30
6.85k
}