[all-commits] [llvm/llvm-project] dcb907: [clang][index] Skip over `#include UNDEF_IDENT` in...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Apr 10 12:32:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcb90780817461ba30ced78338b2270fd3307873
      https://github.com/llvm/llvm-project/commit/dcb90780817461ba30ced78338b2270fd3307873
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2025-04-10 (Thu, 10 Apr 2025)

  Changed paths:
    M clang/lib/Lex/PPDirectives.cpp
    A clang/test/Index/single-file-parse-include-macro.c

  Log Message:
  -----------
  [clang][index] Skip over `#include UNDEF_IDENT` in single-file-parse mode (#135218)

In the 'single-file-parse' mode, seeing `#include UNDEFINED_IDENTIFIER`
should not be treated as an error. The identifier might be defined in a
header that we decided to skip, resulting in a nonsensical diagnostic
from the user point of view.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list