[all-commits] [llvm/llvm-project] c296b1: [clang] Provide to `PPCallbacks` full expression r...

Volodymyr Sapsai via All-commits all-commits at lists.llvm.org
Mon May 5 12:07:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c296b1258c418ab069447eb137dd15012ef8dd96
      https://github.com/llvm/llvm-project/commit/c296b1258c418ab069447eb137dd15012ef8dd96
  Author: Volodymyr Sapsai <vsapsai at apple.com>
  Date:   2025-05-05 (Mon, 05 May 2025)

  Changed paths:
    M clang/lib/Lex/PPExpressions.cpp
    M clang/unittests/Lex/PPCallbacksTest.cpp

  Log Message:
  -----------
  [clang] Provide to `PPCallbacks` full expression range even in single file parse mode. (#138358)

Restore the behavior existing prior to
fe2eefc4718f57e1753f7bd51c158fc03d70b34f. Make reporting of unevaluated
directive source range more consistent and with fewer assumptions. In
case of a failed evaluation don't assume any specific token and don't
assume correct `PPValue` range tracking.



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