查看调用层次结构

使用Call Hierarchy 视图可查看语言服务器的传入和传出函数调用。

将光标放在代码编辑器中的函数定义上,可查看调用该函数的函数列表以及该函数所调用的函数列表。该功能以递归方式工作,因此您还可以查看调用者的调用者。不过,Clangd 只列出传入调用。

编辑器工具栏上选择语言客户端菜单 ,然后选择Restart 来收集函数的调用层次结构信息。

调用层次视图

另请参阅 管理语言服务器

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.