Bug 570130 - Spurious Semantic Errors
Summary: Spurious Semantic Errors
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 10.1.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-06 07:56 EST by Daniel Schürmann CLA
Modified: 2021-01-06 07:56 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Schürmann CLA 2021-01-06 07:56:34 EST
Eclipse reports various spurious Semantic errors when using it for the Mixxx project. 


Example 2:

https://github.com/mixxxdj/mixxx/blob/d688a25873c3432a9cf47cba66543e7176c9e10f/src/mixxx.cpp#L860

Invalid arguments '
Candidates are:
 ConfigKey(const ConfigKey &)
 ConfigKey()
 ConfigKey(QString, QString)
'

Name resolution problem found by the indexer



Example 2:

https://github.com/mixxxdj/mixxx/blob/02a22135b8e79e48d85de5e058b2b08c0016e206/src/library/baseexternallibraryfeature.cpp#L25

Invalid arguments '
Candidates are:
QMetaObject::Connection connect(const QObject *, const char *, const QObject *, const char *, enum Qt::ConnectionType)
QMetaObject::Connection connect(const QObject *, const QMetaMethod &, const QObject *, const QMetaMethod &, enum Qt::ConnectionType)
QMetaObject::Connection connect(const QObject *, const char *, const char *, enum Qt::ConnectionType)
' 

Name resolution problem found by the indexer


Eclipse was configured with cmake4eclipse like described here: 
https://github.com/mixxxdj/mixxx/wiki/eclipse

All includes and compiler definitions are resolved. 
Mixxx is a big project and the indexers runs a few minutes. 
Re-Indexing does not solve the issue.