mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Fix memberHierarchy
This commit is contained in:
parent
d816e1b918
commit
548f44dd79
@ -3,6 +3,9 @@
|
||||
#include "query_utils.h"
|
||||
using namespace ccls;
|
||||
|
||||
#include <clang/AST/Type.h>
|
||||
using namespace clang;
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
namespace {
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user