Bug 315705

Summary: A feature to allow automatic include
Product: [Applications] kdevelop Reporter: Griwes <griwes>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist CC: daniel.santos, simonandric5
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 324260    

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

http://commits.kde.org/kdevelop/236dbb9eea46f2f1e297dbd443e05fe7288b073b
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