Skip to content

Allow "" and <> search paths to be different in CPPScanner #2471

Open
@bdbaddog

Description

@bdbaddog

This issue was originally created at: 2009-08-27 14:20:17.
This issue was reported by: gregnoel.

gregnoel said at 2009-08-27 14:20:17

The CPPScanner uses the same search path for "" and <> #includes. Moreover, the CPPScanner will search '.' if the include is not found elsewhere (which isn't even always correct for a "" search).

This issue is to look at the semantics provided by the the most common compilers (GNU and MSVC at a minimum) and see if there is a way to capture their semantics in a common way (maybe a LOCALCPPPATH that is searched before CPPPATH or maybe a special token that causes the directory of the source file to be searched, or maybe even both).

gregnoel said at 2009-08-27 14:23:20

Add Sergey as CC.

gregnoel said at 2009-12-09 12:03:44

Bug party triage. In the short term, separate the processing for ".." and <..> so that only ".." names are evaluated relative to the file that includes them. After that is fixed, reassign as future p3 to allow separate specification of the ".." and <..> paths.

gregnoel said at 2009-12-16 17:06:46

*** Issue #2524 has been marked as a duplicate of this issue. ***

gregnoel said at 2009-12-16 17:09:42

Issue #2524, just marked as a dup of this issue, has an excellent example of a ".." relative path that should work even if CPPPATH does not contain the directory.

gregnoel said this issue is duplicated by #2524 at 2009-12-16 17:06:47.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions