[clang][Lex] Add back PPCallbacks::FileNotFound
authorJonas Hahnfeld <jonas.hahnfeld@cern.ch>
Fri, 20 Jan 2023 10:13:44 +0000 (11:13 +0100)
committerJonas Hahnfeld <jonas.hahnfeld@cern.ch>
Tue, 24 Jan 2023 08:52:27 +0000 (09:52 +0100)
commit01eb01c7fd7ad6f569ad4d7bf65b5327ac111955
tree4f07e1c3e0b635ab7d203bc34574a53944aa81e5
parent551ee367252a2c63bca67707c49c76c43617e7fd
[clang][Lex] Add back PPCallbacks::FileNotFound

This callback was removed with commit 7a124f4859, but we use it
downstream in ROOT/Cling to implement handling of a special include
syntax. Add back a "safe" version of the callback that only takes
the file name and return a bool to silently skip the file.

Differential Revision: https://reviews.llvm.org/D142196
clang/include/clang/Lex/PPCallbacks.h
clang/lib/Lex/PPDirectives.cpp
clang/unittests/Lex/PPCallbacksTest.cpp