[all-commits] [llvm/llvm-project] 740575: [clangd] Fix readability-else-after-return 'Adding...

Nathan James via All-commits all-commits at lists.llvm.org
Tue Jun 16 04:02:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 740575dc232b25de0a4bedb41e825ee2e5a056ea
      https://github.com/llvm/llvm-project/commit/740575dc232b25de0a4bedb41e825ee2e5a056ea
  Author: njames93 <n.james93 at hotmail.co.uk>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp

  Log Message:
  -----------
  [clangd] Fix readability-else-after-return 'Adding a note without main diagnostic' crash

Fix a crash in clangd caused by an (admittidly incorrect) Remark diagnositic being emitted from readability-else-after-return.
This crash doesn't occur in clang-tidy so there are no tests there for this.

Reviewed By: hokein

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




More information about the All-commits mailing list