Bug 315705 - A feature to allow automatic include
Summary: A feature to allow automatic include
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
Depends on:
Blocks: 324260
  Show dependency treegraph
Reported: 2013-02-23 23:24 UTC by Griwes
Modified: 2015-05-11 23:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Griwes 2013-02-23 23:24:46 UTC
I am currently working on a project that has several directories with `inc.h` file in each, which are included from command line during compilation, to keep include list in files clean (they contain declarations and definitions of things used in many different places). I would really love to see a way to tell C++ Language Support plugin to tread those files as included automatically in every file in given directory and its subdirectories.

Reproducible: Didn't try
Comment 1 Thiago Jung Bauermann 2014-01-10 00:49:13 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Sergey Kalinichev 2014-03-02 08:12:42 UTC
Git commit 236dbb9eea46f2f1e297dbd443e05fe7288b073b by Sergey Kalinichev.
Committed on 01/03/2014 at 19:25.
Pushed by skalinichev into branch 'master'.

Add auto include headers feature.

To use this feature simply add /full/path/to/the/header.h in
.kdev_include_paths. And this file will be added to all files in
specified directory and its subdirectories as if each file #include'd
it (see also -include command line option of clang/gcc).

REVIEW: 116053

M  +19   -1    languages/cpp/preprocessjob.cpp

Comment 3 Daniel Santos 2014-03-03 23:01:17 UTC
Excellent work! And good to see that we're in C++11 now days. :) Thank you