clang  19.0.0git
PPCallbacks.cpp
Go to the documentation of this file.
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 
11 
12 using namespace clang;
13 
14 // Out of line key method.
15 PPCallbacks::~PPCallbacks() = default;
16 
17 void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName,
18  bool IsAngled, OptionalFileEntryRef File,
20 
21 // Out of line key method.
23 
25  bool IsAngled, OptionalFileEntryRef File,
27  First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28  Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
29 }
Defines the clang::FileManager interface and associated types.
llvm::MachO::FileType FileType
Definition: MachO.h:45
Defines the PPCallbacks interface.
SourceLocation Loc
Definition: SemaObjC.cpp:755
virtual ~PPCallbacks()
virtual void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled, OptionalFileEntryRef File, SrcMgr::CharacteristicKind FileType)
Hook called when a '__has_include' or '__has_include_next' directive is read.
Definition: PPCallbacks.cpp:17
void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled, OptionalFileEntryRef File, SrcMgr::CharacteristicKind FileType) override
Hook called when a '__has_include' or '__has_include_next' directive is read.
Definition: PPCallbacks.cpp:24
Encodes a location in the source.
CharacteristicKind
Indicates whether a file or directory holds normal user code, system code, or system code which is im...
Definition: SourceManager.h:81
The JSON file list parser is used to communicate input to InstallAPI.