]> granicus.if.org Git - clang/commit
[clang][Tooling] Delete dots and dotdots when generating absolute paths
authorKadir Cetinkaya <kadircet@google.com>
Fri, 8 Mar 2019 09:42:04 +0000 (09:42 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 8 Mar 2019 09:42:04 +0000 (09:42 +0000)
commit2df582cdb843b237cf5085730e85c5f5338d0c9d
tree2434c3ce3c08dc7d87d186ed268335f125257b9d
parent8352604262c26081960a1ed157aeb6cfeabdf5e9
[clang][Tooling] Delete dots and dotdots when generating absolute paths

Summary:
GetAllFiles interface returns absolute paths, but keeps dots and dot
dots. This patch makes those paths canonical by deleting them.

Reviewers: hokein

Subscribers: cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355678 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/JSONCompilationDatabase.cpp
unittests/Tooling/CompilationDatabaseTest.cpp