Skip to content

Parsing of -idirafter flag is stricter than clang/gcc #11876

@llvmbot

Description

@llvmbot
Bugzilla Link 11504
Version 3.0
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

Specifying -idirafer/some/path (without a space) is accepted by both gcc and clang, but scan-build (or possibly ccc-analyzer) doesn't understand this and misses the include path. Using "-idirafter /some/path" (with a space) works without problems.

This probably isn't a huge deal (it took me about 30 seconds to add a space in the Makefile), but it is a bit inconsistent.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions