1e5dd7070Spatrick //===--- PPCallbacks.cpp - Callbacks for Preprocessor actions ---*- C++ -*-===//
2e5dd7070Spatrick //
3e5dd7070Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e5dd7070Spatrick // See https://llvm.org/LICENSE.txt for license information.
5e5dd7070Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e5dd7070Spatrick //
7e5dd7070Spatrick //===----------------------------------------------------------------------===//
8e5dd7070Spatrick
9e5dd7070Spatrick #include "clang/Lex/PPCallbacks.h"
10ec727ea7Spatrick #include "clang/Basic/FileManager.h"
11e5dd7070Spatrick
12e5dd7070Spatrick using namespace clang;
13e5dd7070Spatrick
14ec727ea7Spatrick // Out of line key method.
15ec727ea7Spatrick PPCallbacks::~PPCallbacks() = default;
16ec727ea7Spatrick
HasInclude(SourceLocation Loc,StringRef FileName,bool IsAngled,OptionalFileEntryRef File,SrcMgr::CharacteristicKind FileType)17ec727ea7Spatrick void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
18*12c85518Srobert bool IsAngled, OptionalFileEntryRef File,
19ec727ea7Spatrick SrcMgr::CharacteristicKind FileType) {}
20ec727ea7Spatrick
21ec727ea7Spatrick // Out of line key method.
22ec727ea7Spatrick PPChainedCallbacks::~PPChainedCallbacks() = default;
23ec727ea7Spatrick
HasInclude(SourceLocation Loc,StringRef FileName,bool IsAngled,OptionalFileEntryRef File,SrcMgr::CharacteristicKind FileType)24ec727ea7Spatrick void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
25*12c85518Srobert bool IsAngled, OptionalFileEntryRef File,
26ec727ea7Spatrick SrcMgr::CharacteristicKind FileType) {
27ec727ea7Spatrick First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28ec727ea7Spatrick Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
29ec727ea7Spatrick }
30