From: Chandler Carruth Date: Fri, 4 Nov 2011 07:12:58 +0000 (+0000) Subject: Add a FIXME to cleanup the CPATH handling. It's currently burried with X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5870e77a9a872e2a84e904a332bb60bbe207da9;p=clang 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 --- 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"));