[clangd] Add access specifier information to hover contents
authorDaniel Martín <mardani29@yahoo.es>
Wed, 27 May 2020 16:17:07 +0000 (18:17 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 27 May 2020 17:36:46 +0000 (19:36 +0200)
commit6407aa9d2e0e225bc81d3b2602d6e6ed79912ec2
treee4e80fd84e4b1b21cf0b84f3950e2429f4f40f22
parente7f1067ad6f116ff1e4bfc0f7fe1977f172b0ea0
[clangd] Add access specifier information to hover contents

Summary:
For https://github.com/clangd/clangd/issues/382

This commit adds access specifier information to the hover
contents. For example, the hover information of a class field or
member function will now indicate if the field or member is private,
public, or protected. This can be particularly useful when a developer
is in the implementation file and wants to know if a particular member
definition is public or private.

Reviewers: kadircet

Reviewed By: kadircet

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80472
clang-tools-extra/clang-doc/Generators.cpp
clang-tools-extra/clang-doc/Generators.h
clang-tools-extra/clang-doc/HTMLGenerator.cpp
clang-tools-extra/clang-doc/MDGenerator.cpp
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Hover.h
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/include/clang/Basic/Specifiers.h
clang/lib/AST/DeclPrinter.cpp
clang/lib/AST/JSONNodeDumper.cpp
clang/lib/AST/TextNodeDumper.cpp