简体   繁体   English

Eclipse + CDT:如何从命令行构建索引?

[英]Eclipse + CDT: how to build indexes from command line?

How to build a C project's indexes from command line? 如何从命令行构建C项目的索引? I am thinking to use it in a script so that I can build indexes every night with the latest code.(Our codebase is pretty big, usually it takes hours to build indexes). 我想在脚本中使用它,以便我可以使用最新的代码每晚构建索引。(我们的代码库非常大,通常需要数小时才能构建索引)。 And, possibly share the index result within the team. 并且,可能在团队中共享索引结果。

I found this prebuild indexes help doc: Pre-built indexes in CDT 4.0 我发现这个预建索引有助于doc: CDT 4.0中的预建索引

But it seems to have limitations, for example, it doesn't respect my project settings, In my project, In the Paths and Symbols, I have Include Path, Macros, Source Locations set up. 但它似乎有局限性,例如,它不尊重我的项目设置,在我的项目中,在路径和符号中,我设置了包含路径,宏,源位置。 Especially I have some filter patterns set up in the source location. 特别是我在源位置设置了一些过滤模式。 These project specific settings are all saved in .cproject file. 这些项目特定设置都保存在.cproject文件中。

How do I make the command line indexer respect these settings? 如何使命令行索引器尊重这些设置? I guess basically I want the command-line indexer to generate the same result as I do it from GUI. 我想基本上我希望命令行索引器生成与GUI相同的结果。

I am using 3.7.2, CDT 8.0.2 我使用的是3.7.2,CDT 8.0.2

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

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