[PATCH] D142196: [clang][Lex] Add back PPCallbacks::FileNotFound

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 23 10:21:57 PST 2023


jansvoboda11 accepted this revision.
jansvoboda11 added a comment.
This revision is now accepted and ready to land.

LGTM with improved wording.



================
Comment at: clang/include/clang/Lex/PPCallbacks.h:87
+  /// Callback invoked whenever an inclusion directive results in a
+  /// file-not-found error.
+  ///
----------------
The wording is a bit misleading due to:
```
  if (SuppressIncludeNotFoundError)
    return std::nullopt;
```
after invoking this callback. Reading the comment, I assume the diagnostic has already been issued. Can we tweak this to clarify things?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142196/new/

https://reviews.llvm.org/D142196



More information about the cfe-commits mailing list