clang 20.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
10
11using namespace clang;
12
13// Out of line key method.
15
17 bool IsAngled, OptionalFileEntryRef File,
19
20// Out of line key method.
22
24 bool IsAngled, OptionalFileEntryRef File,
26 First->HasInclude(Loc, FileName, IsAngled, File, FileType);
27 Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
28}
llvm::MachO::FileType FileType
Definition: MachO.h:46
Defines the PPCallbacks interface.
SourceLocation Loc
Definition: SemaObjC.cpp:759
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:16
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:23
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.