17330f729Sjoerg //===--- PPCallbacks.cpp - Callbacks for Preprocessor actions ---*- C++ -*-===//
27330f729Sjoerg //
37330f729Sjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
47330f729Sjoerg // See https://llvm.org/LICENSE.txt for license information.
57330f729Sjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
67330f729Sjoerg //
77330f729Sjoerg //===----------------------------------------------------------------------===//
87330f729Sjoerg
97330f729Sjoerg #include "clang/Lex/PPCallbacks.h"
10*e038c9c4Sjoerg #include "clang/Basic/FileManager.h"
117330f729Sjoerg
127330f729Sjoerg using namespace clang;
137330f729Sjoerg
14*e038c9c4Sjoerg // Out of line key method.
15*e038c9c4Sjoerg PPCallbacks::~PPCallbacks() = default;
16*e038c9c4Sjoerg
HasInclude(SourceLocation Loc,StringRef FileName,bool IsAngled,Optional<FileEntryRef> File,SrcMgr::CharacteristicKind FileType)17*e038c9c4Sjoerg void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
18*e038c9c4Sjoerg bool IsAngled, Optional<FileEntryRef> File,
19*e038c9c4Sjoerg SrcMgr::CharacteristicKind FileType) {}
20*e038c9c4Sjoerg
21*e038c9c4Sjoerg // Out of line key method.
22*e038c9c4Sjoerg PPChainedCallbacks::~PPChainedCallbacks() = default;
23*e038c9c4Sjoerg
HasInclude(SourceLocation Loc,StringRef FileName,bool IsAngled,Optional<FileEntryRef> File,SrcMgr::CharacteristicKind FileType)24*e038c9c4Sjoerg void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
25*e038c9c4Sjoerg bool IsAngled, Optional<FileEntryRef> File,
26*e038c9c4Sjoerg SrcMgr::CharacteristicKind FileType) {
27*e038c9c4Sjoerg First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28*e038c9c4Sjoerg Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
29*e038c9c4Sjoerg }
30*e038c9c4Sjoerg
31