xref: /llvm-project/clang/lib/Lex/PPCallbacks.cpp (revision 764275949897533a4be0728250e69a94d228fbc5)
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 
11 using namespace clang;
12 
13 // Out of line key method.
14 PPCallbacks::~PPCallbacks() = default;
15 
16 void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
17                              bool IsAngled, OptionalFileEntryRef File,
18                              SrcMgr::CharacteristicKind FileType) {}
19 
20 // Out of line key method.
21 PPChainedCallbacks::~PPChainedCallbacks() = default;
22 
23 void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
24                                     bool IsAngled, OptionalFileEntryRef File,
25                                     SrcMgr::CharacteristicKind FileType) {
26   First->HasInclude(Loc, FileName, IsAngled, File, FileType);
27   Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
28 }
29