[all-commits] [llvm/llvm-project] 4ad17d: Clean "./" from __FILE__ expansion.

Alan Zhao via All-commits all-commits at lists.llvm.org
Thu Jun 2 15:00:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ad17d2e96a382e5f595bab30920ba26762a6fa9
      https://github.com/llvm/llvm-project/commit/4ad17d2e96a382e5f595bab30920ba26762a6fa9
  Author: Paul Pluzhnikov <ppluzhnikov at google.com>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

  Changed paths:
    M clang/lib/Lex/PPMacroExpansion.cpp

  Log Message:
  -----------
  Clean "./" from __FILE__ expansion.

This is alternative to https://reviews.llvm.org/D121733
and helps with Clang header modules in which FILE
may expand to "./foo.h" or "foo.h" depending on whether the file was
included directly or not.

Only do this when UseTargetPathSeparator is true, as we are already
changing the path in that case.

Reviewed By: ayzhao

Differential Revision: https://reviews.llvm.org/D126396




More information about the All-commits mailing list