]> granicus.if.org Git - clang/commit
Add two flags to the CC1 layer that I was hoping to avoid. We need to
authorChandler Carruth <chandlerc@gmail.com>
Sat, 5 Nov 2011 08:30:29 +0000 (08:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 5 Nov 2011 08:30:29 +0000 (08:30 +0000)
commitac2bc4d220a6263be96b943e9162f4a11149e26d
tree6c0d95e3922b4fd5f50893f956b16002abc36865
parent6bbecd5e96c2bfe6dcb935a3ca0deb06782a5b14
Add two flags to the CC1 layer that I was hoping to avoid. We need to
encode the *exact* semantics which the header search paths internally
built by the Frontend layer have had, which is both non-user-provided,
and at times adding the implicit extern "C" bit to the directory entry.

There are lots of CC1 options that are very close, but none do quite
this, and they are all already overloaded for other purposes. In some
senses this makes the command lines more clean as it clearly indicates
which flags are exclusively used to implement internal detection of
"standard" header search paths.

Lots of the implementation of this is really crufty, due to the
surrounding cruft. It doesn't seem worth investing lots of time cleaning
this up as it isn't new, and hopefully *lots* of this code will melt
away as header search inside of the frontend becomes increasingly
trivial.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143798 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Frontend/HeaderSearchOptions.h
lib/Driver/ToolChains.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitHeaderSearch.cpp