简体   繁体   English

Eclipse Cdt Indexer-如何查找语法错误和未解析的名称

[英]Eclipse Cdt Indexer - how to locate syntax errors and unresolved names

Using: 使用:

  • Eclipse 4.4.0 (Luna) with Cdt 8.4.0.201406111759 具有Cdt 8.4.0.201406111759的Eclipse 4.4.0(Luna)
  • native gcc / g++ and also cross gcc-arm 本地gcc / g ++,也可以跨gcc-arm
  • C/C++ project with external makefile 具有外部Makefile的C / C ++项目

I'd spend some effort to setup the cdt indexer properly (including automatic discovery of the gcc-arm builtin specs, build output discovery et cetera). 我将花费一些精力来正确设置cdt索引器(包括自动发现gcc-arm内置规格,建立输出发现等)。

When reindexing the whole project, the Error Log View shows something like this: 重新索引整个项目时,“错误日志视图”显示如下内容:

Indexed 'Stm-Workbench' (41 sources, 180 headers) in 3,58 sec: 13.921 declarations; 34.120 references; 0 unresolved inclusions; 1 syntax errors; 9 unresolved names (0,019 %)

I now want to check where the remaining syntax errors and unresolved names are located / referenced from. 我现在要检查其余的语法错误和未解析的名称在哪里/从哪里引用。

I surely know how to locate the references of unresolved inclusions (Project → C/C++ Index → Search for unresolved includes). 我当然知道如何找到未解决的包含项的引用(项目→C / C ++索引→搜索未解决的包含项)。

But how to locate the other potential issues? 但是,如何找到其他潜在的问题呢?

Of course, I could open every single source file of my whole project because when opening a file I see the in the problems view. 当然,我可以打开整个项目的每个源文件,因为打开文件时,我会在问题视图中看到。 But I hope there may be a less dumb way. 但我希望可能有一种更简单的方法。

What you need is called Problems View . 您需要的是问题视图 It enables you to find the location of the issues at hand 它使您能够找到当前问题的位置

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM