mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-01 11:57:09 +00:00
Fix memberHierarchy
This commit is contained in:
parent
d816e1b918
commit
548f44dd79
@ -3,6 +3,9 @@
|
|||||||
#include "query_utils.h"
|
#include "query_utils.h"
|
||||||
using namespace ccls;
|
using namespace ccls;
|
||||||
|
|
||||||
|
#include <clang/AST/Type.h>
|
||||||
|
using namespace clang;
|
||||||
|
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -121,7 +124,7 @@ bool Expand(MessageHandler* m,
|
|||||||
Out_CclsMemberHierarchy::Entry* entry,
|
Out_CclsMemberHierarchy::Entry* entry,
|
||||||
bool qualified,
|
bool qualified,
|
||||||
int levels) {
|
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));
|
entry->name = ClangBuiltinTypeName(CXTypeKind(entry->usr));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user