Skip to content

Commit

Permalink
Fix memberHierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jul 9, 2018
1 parent 7d1d4b4 commit 7c1ff07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/messages/ccls_memberHierarchy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#include "query_utils.h"
using namespace ccls;

#include <clang/AST/Type.h>
using namespace clang;

#include <unordered_set>

namespace {
Expand Down Expand Up @@ -121,7 +124,7 @@ bool Expand(MessageHandler* m,
Out_CclsMemberHierarchy::Entry* entry,
bool qualified,
int levels) {
if (CXType_FirstBuiltin <= entry->usr && entry->usr <= CXType_LastBuiltin) {
if (0 < entry->usr && entry->usr <= BuiltinType::LastKind) {
entry->name = ClangBuiltinTypeName(CXTypeKind(entry->usr));
return true;
}
Expand Down

0 comments on commit 7c1ff07

Please sign in to comment.