Bug 316691

Summary: Add regexp to add many include paths in one line
Product: [Applications] kdevelop Reporter: Olivier Hallot <olivier.hallot>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:

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/