xref: /openbsd-src/gnu/llvm/clang/lib/Lex/PPCallbacks.cpp (revision ec727ea710c91afd8ce4f788c5aaa8482b7b69b2)
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"
10*ec727ea7Spatrick #include "clang/Basic/FileManager.h"
11e5dd7070Spatrick 
12e5dd7070Spatrick using namespace clang;
13e5dd7070Spatrick 
14*ec727ea7Spatrick // Out of line key method.
15*ec727ea7Spatrick PPCallbacks::~PPCallbacks() = default;
16*ec727ea7Spatrick 
17*ec727ea7Spatrick void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
18*ec727ea7Spatrick                              bool IsAngled, Optional<FileEntryRef> File,
19*ec727ea7Spatrick                              SrcMgr::CharacteristicKind FileType) {}
20*ec727ea7Spatrick 
21*ec727ea7Spatrick // Out of line key method.
22*ec727ea7Spatrick PPChainedCallbacks::~PPChainedCallbacks() = default;
23*ec727ea7Spatrick 
24*ec727ea7Spatrick void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
25*ec727ea7Spatrick                                     bool IsAngled, Optional<FileEntryRef> File,
26*ec727ea7Spatrick                                     SrcMgr::CharacteristicKind FileType) {
27*ec727ea7Spatrick   First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28*ec727ea7Spatrick   Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
29*ec727ea7Spatrick }
30*ec727ea7Spatrick 
31