Bug 316691 - Add regexp to add many include paths in one line
Summary: Add regexp to add many include paths in one line
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 21:54 UTC by Olivier Hallot
Modified: 2014-01-25 01:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2013-03-13 21:54:26 UTC
As discussed in the user lists, with Milian. 

On a large C++ project (LibreOffice), C++ files are put into modules, and each module has its own include directory. For example:

> sample of my include path, and incomplete:
> ----------------%<---------------
> /home/tdf/git/core/vcl/inc/
> /home/tdf/git/core/tools/inc/
> /home/tdf/git/core/sfx2/inc/
> /home/tdf/git/core/comphelper/inc/
> /home/tdf/git/core/ucbhelper/inc/
> ----------------%<---------------
>
> The idea is to have a regexp to get all these "inc's" in one line...
> otherwise I 'll have to enter dozens of lines...

Ah, now I get it. That should be fairly trivial to implement and I understand 
how it can be useful in cases like this one. Please report a wish request for 
that on bugs.kde.org.

If you want to look into it, see 
kdevelop/languages/cpp/includepathresolver.cpp, function 
CustomIncludePathsSettings::read().

Note to self: That file needs to be cleaned up...



Reproducible: Always

Actual Results:  
One has to type/add each include explicitely

Expected Results:  
one regexp such as 

/home/tdf/*/inc/