aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-04 07:12:58 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-04 07:12:58 +0000
commitb5870e77a9a872e2a84e904a332bb60bbe207da9 (patch)
tree0a27d60cb63d02ca90efd5ad514226b7e49fb210
parent88491fc6dfc7ebbd856d57a9acb49fb83077d6c8 (diff)
Add a FIXME to cleanup the CPATH handling. It's currently burried with
the rest of the mess in InitHeaderSearch.cpp. We could hoist it into the driver profitably, removing more noise from the driver -> frontend communication. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 98c2d28a9c..24f88d9eb5 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -403,6 +403,8 @@ void Clang::AddPreprocessingOptions(const Driver &D,
Args.AddAllArgs(CmdArgs, options::OPT_fauto_module_import);
// Parse additional include paths from environment variables.
+ // FIXME: We should probably sink the logic for handling these from the
+ // frontend into the driver. It will allow deleting 4 otherwise unused flags.
// CPATH - included following the user specified includes (but prior to
// builtin and standard includes).
AddIncludeDirectoryList(Args, CmdArgs, "-I", ::getenv("CPATH"));