https://bugs.kde.org/show_bug.cgi?id=386421

            Bug ID: 386421
           Summary: KDevelop C++ code completion does not respect user
                    defined system-wide include directories in CMake
                    projects.
           Product: kdevelop
           Version: 5.1.80
          Platform: Neon Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: vbs...@centrum.cz
  Target Milestone: ---

Created attachment 108661
  --> https://bugs.kde.org/attachment.cgi?id=108661&action=edit
Bug report illustration

KDevelop C++ code completion does not respect user defined system-wide include
directories in CMake projects. Please see attached illustration video.

*How to reproduce?*
1. Open attached sample project.
2. Build it.
3. Open file "SampleLibraryStuff.cpp"
4. On top of that file try to type "#include <My"
5. Press Ctrl+Space to force invoke auto completion.

*What happens?*
KDevelop just proposes operating system wide files/folders along with automatic
word completion.

*Expected behavior?*
KDevelop should propose "MyNamespace" directory (user defined system wide
include) first along with other matches.

*Notes:*
- Please note the angle bracket "<" which is supposed to be for system wide
includes. The local project related includes works well.

- The user defined system wide include directory is specified in
CMakeLists.txxt by target_include_directory command argument SYSTEM PUBLIC -
for details please see attached sample project.

- My system is using Clang 5.x, CMake 3.8 with server support, KDevelop 5.1.80.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to