regard conversion as method instead of constructor

This commit is contained in:
firstlove 2018-10-02 11:09:11 +08:00
parent f18885db3d
commit 960e838774
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ build
debug debug
release release
/compile_commands.json /compile_commands.json
Release

View File

@ -1033,10 +1033,10 @@ public:
break; break;
} }
case Decl::CXXConstructor: case Decl::CXXConstructor:
case Decl::CXXConversion:
func->def.kind = lsSymbolKind::Constructor; func->def.kind = lsSymbolKind::Constructor;
break; break;
case Decl::CXXDestructor: case Decl::CXXDestructor:
case Decl::CXXConversion:
func->def.kind = lsSymbolKind::Method; func->def.kind = lsSymbolKind::Method;
break; break;
case Decl::Var: case Decl::Var: