[all-commits] [llvm/llvm-project] 01eb01: [clang][Lex] Add back PPCallbacks::FileNotFound

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Tue Jan 24 00:52:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01eb01c7fd7ad6f569ad4d7bf65b5327ac111955
      https://github.com/llvm/llvm-project/commit/01eb01c7fd7ad6f569ad4d7bf65b5327ac111955
  Author: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
  Date:   2023-01-24 (Tue, 24 Jan 2023)

  Changed paths:
    M clang/include/clang/Lex/PPCallbacks.h
    M clang/lib/Lex/PPDirectives.cpp
    M clang/unittests/Lex/PPCallbacksTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list