[all-commits] [llvm/llvm-project] 297a9d: [CodeComplete] Don't replace the rest of line in #...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Mar 26 03:16:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 297a9dac43f31cdbc811de5ec63ad20812433f98
      https://github.com/llvm/llvm-project/commit/297a9dac43f31cdbc811de5ec63ad20812433f98
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-03-26 (Thu, 26 Mar 2020)

  Changed paths:
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang/lib/Lex/Lexer.cpp

  Log Message:
  -----------
  [CodeComplete] Don't replace the rest of line in #include completion.

Summary:
The previous behavior was aggressive,
  #include "abc/f^/abc.h"
                foo/  -> candidate
"f/abc.h" is replaced with "foo/", this patch will preserve the "abc.h".

Reviewers: sammccall

Subscribers: jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list