Switch using common directory names - #21
Open
rmaicle wants to merge 1 commit into
Open
Conversation
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.
Owner
|
@negerns I like this idea, I'll look over the pull request when I get a little time, hopefully soon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.