检查代码模型
当您报告与 C++ 代码模型有关的错误时,Qt Creator 开发人员可能会要求您将代码模型内部状态的信息写入日志文件,并将该文件交给他们检查。
要在C++ Code Model Inspector 对话框中查看有关 C++ 代码模型的信息并将其写入日志文件,请选择Tools > > 或选择 Ctrl+ 。 Debug Qt Creator >Inspect C++ Code Model 或选择Ctrl+Shift+F12。
Qt Creator 在临时文件夹中生成代码模型检查日志文件。
Qt Creator 在 模式下的 C++ 代码编辑器中,下划线显示橄榄形的语义错误。要检查未解析或解析到错误文件的包含的正确路径,请访问 > 。Edit Project Parts Header Paths
另请参阅 如何:编辑代码、编辑模式、Clang 代码模型和代码模型。
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.