[all-commits] [llvm/llvm-project] b2666c: [clangd] DefineOutline won't copy virtual specifie...

Nathan James via All-commits all-commits at lists.llvm.org
Tue Mar 3 01:59:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b2666ccca0277371a09e43a0a5a0f78029ba81e5
      https://github.com/llvm/llvm-project/commit/b2666ccca0277371a09e43a0a5a0f78029ba81e5
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

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

  Log Message:
  -----------
  [clangd] DefineOutline won't copy virtual specifiers on methods

Summary:
The define out of line refactor tool previously would copy the `virtual`, `override` and `final` specifier into the out of line method definition.
This results in malformed code as those specifiers aren't allowed outside the class definition.

Reviewers: hokein, kadircet

Reviewed By: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang, #clang-tools-extra

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




More information about the All-commits mailing list