Coverage Report

Created: 2023-09-30 09:22

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Lex/PPCallbacks.cpp
Line
Count
Source
1
//===--- PPCallbacks.cpp - Callbacks for Preprocessor actions ---*- 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
#include "clang/Lex/PPCallbacks.h"
10
#include "clang/Basic/FileManager.h"
11
12
using namespace clang;
13
14
// Out of line key method.
15
181k
PPCallbacks::~PPCallbacks() = default;
16
17
void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
18
                             bool IsAngled, OptionalFileEntryRef File,
19
25.0k
                             SrcMgr::CharacteristicKind FileType) {}
20
21
// Out of line key method.
22
47.4k
PPChainedCallbacks::~PPChainedCallbacks() = default;
23
24
void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
25
                                    bool IsAngled, OptionalFileEntryRef File,
26
21.4k
                                    SrcMgr::CharacteristicKind FileType) {
27
21.4k
  First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28
21.4k
  Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
29
21.4k
}