Skip to content

Analyse includes and fix (or suggest fixes for) any that are absolute that should be relative #77

@DanForever

Description

@DanForever

Depending on how a project has configured it's its include directory settings, it might be possible for a file to include another file relative to an incorrect path.

For instance, if I have the following file structure:
mysln.sln
proj/myproj.vcxproj
proj/somepath/a.cpp
proj/somepath/b.h

I can add the root folder of my solution to my search path, for easier includes between projects, it has the side effect of also allowing me to include b.h in a.cpp like so:
#include <proj/somepath/b.h> (This also works with includes using "")

It would be nice if IncludeToolbox could examine #includes and inform the user that the include might be refactored to simply `#include "b.h"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions