我将C / C ++项目的索引导出到.settings / cdt-index.zip。当我稍后导入该项目时,索引无法正确导入。从调试跟踪中,我可以看出导入的共享索引没有问题,但是索引没有加载到编辑器中。
CDT版本:8.6.0.201502131403
重现步骤:
以下是调试信息:
Indexer: Removing project AttachProcessGDBTest; delete=true
Indexer: Adding new project AttachProcessGDBTest
Indexer: Setup is postponed: AttachProcessGDBTest
Indexer: Creation for project AttachProcessGDBTest
Indexer: PDOMImporter start
Indexer: PDOMImporter completed, ok=true
Indexer: Imported shared index for project AttachProcessGDBTest
Indexer: start PDOMUpdateTask
C/C++ Indexer: Project 'AttachProcessGDBTest' (0 sources, 0 headers)
Options: indexer='PDOMFastIndexer', parseAllFiles=true, unusedHeaders=useCPP, skipReferences=false, skipImplicitReferences=false, skipTypeReferences=false, skipMacroReferences=false.
Database: 475136 bytes
Timings: 7 total, 0 parser, 0 resolution, 0 index update.
Errors: 0 internal, 0 include, 0 scanner, 0 syntax errors.
Names: 0 declarations, 0 references, 0(0.00%) unresolved.
Cache[45MB]: 87 hits, 1(1.14%) misses.
Indexer: completed PDOMUpdateTask[8ms]
当我尝试点击符号时,这是我得到的错误:
Description Resource Path Location Type
Function 'printf' could not be resolved AttachProcessGDBTest.cpp /AttachProcessGDBTest line 27 Semantic Error