Skip to content

Switch using common directory names - #21

Open
rmaicle wants to merge 1 commit into
dwmkerr:masterfrom
rmaicle:master
Open

Switch using common directory names#21
rmaicle wants to merge 1 commit into
dwmkerr:masterfrom
rmaicle:master

Conversation

@rmaicle

@rmaicle rmaicle commented Sep 25, 2014

Copy link
Copy Markdown

In C++, header files are usually in 'include' directories and
implementation files are in 'source' directories. These directories
usually share a common root path.

\include...
\source...

There is also the possibility that C++ project components are
placed in their own sub-directory with corresponding 'include'
and 'source' directories.

\component_1\include...
\component_1\source...
\component_2\include...
\component_2\source...

What it does not yet do is scan for other directory layouts.
An example is when 'include' files are placed into deeper
subdirectories:

\component_1\include\sub1*.h
\component_1\include\sub2*.h
\component_1\source*.cpp

The common directories taken into account are:

includes; include; inc
sources; source; src

These are pre-defined for now but they should be configurable.

In C++, header files are usually in 'include' directories and
implementation files are in 'source' directories. These directories
usually share a common root path.

<root>\include\...
<root>\source\...

There is also the possibility that C++ project components are
placed in their own sub-directory with corresponding 'include'
and 'source' directories.

<root>\component_1\include\...
<root>\component_1\source\...
<root>\component_2\include\...
<root>\component_2\source\...

What it does not yet do is scan for other directory layouts.
An example is when 'include' files are placed into deeper
subdirectories:

<root>\component_1\include\sub1\*.h
<root>\component_1\include\sub2\*.h
<root>\component_1\source\*.cpp

The common directories taken into account are:

includes; include; inc
sources; source; src

These are pre-defined for now but they should be configurable.
@dwmkerr

dwmkerr commented Sep 29, 2014

Copy link
Copy Markdown
Owner

@negerns I like this idea, I'll look over the pull request when I get a little time, hopefully soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants