[all-commits] [llvm/llvm-project] 2e770e: [libclang] Compute the right spelling location (#7...

Sebastian Poeplau via All-commits all-commits at lists.llvm.org
Wed Apr 24 11:01:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e770edd8ce13f48402f1d93e5fb982d8a2ebe64
      https://github.com/llvm/llvm-project/commit/2e770edd8ce13f48402f1d93e5fb982d8a2ebe64
  Author: Sebastian Poeplau <poeplau at adacore.com>
  Date:   2024-04-24 (Wed, 24 Apr 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/tools/c-index-test/c-index-test.c
    M clang/tools/libclang/CXSourceLocation.cpp
    M clang/unittests/libclang/LibclangTest.cpp

  Log Message:
  -----------
  [libclang] Compute the right spelling location (#72400)

Locations inside macro expansions have different spelling/expansion
locations. Apply a FIXME to make the libclang function
clang_getSpellingLocation return the right spelling location, and adapt
the testsuite driver code to use the file location rather than the
spelling location to compute source ranges.

Co-authored-by: Matthieu Eyraud <eyraud at adacore.com>



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