[all-commits] [llvm/llvm-project] 4d90ff: [clangd] When inserting "using", add "::" in front...

Adam Czachorowski via All-commits all-commits at lists.llvm.org
Tue Aug 25 05:12:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d90ff59ac453a67ac692ffdf8242e4cfbd2b34f
      https://github.com/llvm/llvm-project/commit/4d90ff59ac453a67ac692ffdf8242e4cfbd2b34f
  Author: Adam Czachorowski <adamcz at google.com>
  Date:   2020-08-25 (Tue, 25 Aug 2020)

  Changed paths:
    M clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp
    M clang-tools-extra/clangd/unittests/TweakTests.cpp

  Log Message:
  -----------
  [clangd] When inserting "using", add "::" in front if that's the style.

We guess the style based on the existing using declarations. If there
are any and they all start with ::, we add it to the newly added one
too.

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




More information about the All-commits mailing list