Sure. In Short File A is a source file and B is a header file.
Project A contains file A.cpp:
//A.cpp
#include "B.h"
B b{}; //Here I have a ProblemBinding on B.
Project B contains file B.h:
//B.h
//struct B{}; //This Definition is added.
There is a dependency from project A to project B.
Above we have the initial situation. The index is (re)built. Everything is as expected. Then I perform the following steps:
- Uncomment/Add the Definition of struct B in B.h.
-> Reconciler runs
- Open file A.cpp in Editor
-> This invokes Codan and my checker (through AbstractASTIndexChecker.processModel - with index over project A). My checker still sees a ProblemBinding for B.
- Execute "Run C/C++ Code Analysis"
-> This invokes Codan and my checker (through AbstractASTIndexChecker.processResource - with index over all projects). My checker now sees the ICPPClassType of B.
- When start typing in the file A.cpp Codan runs again (with processModel).
- My checker again sees a ProblemBinding for B.
First, I'm not sure whether it makes sense to run the Codan checkers with different configurations. Second, what I actually would like to have an improvement for, is the ProblemBinding after adding the required type.
Regards
Thomas
Von: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> im Auftrag von Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx>
Gesendet: Montag, 10. November 2014 20:33
An: CDT General developers list.
Betreff: Re: [cdt-dev] Codan: Index Updates for Referenced Projects
|