调用层次结构

将光标放在代码编辑器中的函数定义上,可以查看调用该函数的函数列表以及该函数所调用的函数列表。该功能以递归方式工作,因此您还可以查看调用者的调用者。不过,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.