Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] code completion ignores include path

This is WAI. One possible workflow is to add the code first, then add includes for it using Add Include or Organize Includes.

-sergey

On Wed, Jan 7, 2015 at 9:58 AM, scalpel4k <scalpel4k@xxxxxxxxx> wrote:
Hi guys,

is it something with my workbench/project setup or a bug?

When I declare things in another file and do NOT #include that file, code
completion is still offering me those types from another translation unit. Of
course, the compiler complains.

Michi

// test.hpp
#ifndef TEST_HPP_
#define TEST_HPP_

class TestNormalClass {};

template<typename T>
class TestClassTemplate {};

#endif /* TEST_HPP_ */

//otherfile.cpp
int main(){
        Test/*cursor*/
}
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top