[all-commits] [llvm/llvm-project] f50fe5: [Sema][CodeComplete] Handle symlinks for include c...

David Goldman via All-commits all-commits at lists.llvm.org
Wed Feb 19 08:46:38 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f50fe5eb6d2ec0adb5b2fd91a4023fc1573e061f
      https://github.com/llvm/llvm-project/commit/f50fe5eb6d2ec0adb5b2fd91a4023fc1573e061f
  Author: David Goldman <davg at google.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M clang/lib/Sema/SemaCodeComplete.cpp
    A clang/test/CodeCompletion/included-symlinks.cpp

  Log Message:
  -----------
  [Sema][CodeComplete] Handle symlinks for include code completion

Summary:
Previously any symlinks would be ignored since the directory
traversal doesn't follow them.

With this change we now follow symlinks (via a `stat` call
in order to figure out the target type of the symlink if it
is valid).

Reviewers: sammccall

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list