[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / lib / Lex / PPCallbacks.cpp
blobf2b60a728e90178fcf135a7416d835e31c4f7ebc
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 //===----------------------------------------------------------------------===//
9 #include "clang/Lex/PPCallbacks.h"
10 #include "clang/Basic/FileManager.h"
12 using namespace clang;
14 // Out of line key method.
15 PPCallbacks::~PPCallbacks() = default;
17 void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
18 bool IsAngled, OptionalFileEntryRef File,
19 SrcMgr::CharacteristicKind FileType) {}
21 // Out of line key method.
22 PPChainedCallbacks::~PPChainedCallbacks() = default;
24 void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
25 bool IsAngled, OptionalFileEntryRef File,
26 SrcMgr::CharacteristicKind FileType) {
27 First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28 Second->HasInclude(Loc, FileName, IsAngled, File, FileType);