Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
Qt Creator 4.4.1
-
Ubuntu 14.04
Qt 5.9.2
I open this CMake project project by clicking on "Open file or project" then opening CMakelists.txt at ~/catkin_ws/src.
Description
Hello, I deal with those four files whose 2 of them are .hpp files with same name and different path :
d1 / Thed1cppFile.cpp
d1 / include / B.hpp
d2 / Thed2cppFile.cpp
d2 / include / B.hpp
Problem 1: File d2 / include / B.hpp comes with this warning when I open it : "This file is not part of any project. The code model might have issues to parse this file properly" (btw this is boring because tool "Find Usages" do not work anymore from this file). I have no such problem with d1 / include / B.hpp.
Problem 2: When I display "Include Hierarchy" of file d1 / include / B.hpp, I get :
Included by
Thed1cppFile.cpp
Thed2cppFile.cpp
The first file is expected because I can read #include B.hpp in it, so I guess it is normal to look for the B.hpp in d1.
The second file IS NOT expected because I can read #include B.hpp in it. It should include the B.hpp in d2 directory. Instead, it includes the B.hpp that is in the d1 directory.
We can eventually say that Qtcreator does not find any file that includes d2 / include / B.hpp.