HomePhabricator

[clangd] Fix readability-else-after-return 'Adding a note without main…

Authored by njames93 on Jun 16 2020, 4:01 AM.

Description

[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

Details

Committed
njames93Jun 16 2020, 4:01 AM
Reviewer
hokein
Differential Revision
D81785: [clangd] Fix readability-else-after-return 'Adding a note without main diagnostic' crash
Parents
rG503a26d8e4d0: Silence GCC 7 warning
Branches
Unknown
Tags
Unknown