[all-commits] [llvm/llvm-project] ae5913: [clang][Tooling] Make the filename behaviour consi...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Tue Nov 15 01:52:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae59131d3ef311fb4b1e50627c6457be00e60dc9
      https://github.com/llvm/llvm-project/commit/ae59131d3ef311fb4b1e50627c6457be00e60dc9
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M clang/lib/Tooling/JSONCompilationDatabase.cpp
    M clang/unittests/Tooling/CompilationDatabaseTest.cpp

  Log Message:
  -----------
  [clang][Tooling] Make the filename behaviour consistent

Dotdots were removed only when converting a relative path to absolute
one. This patch makes the behaviour consistent for absolute file paths by
removing them in that case as well. Also updates the documentation to mention
the behaviour.

Fixes https://github.com/clangd/clangd/issues/1317

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




More information about the All-commits mailing list