]> granicus.if.org Git - clang/commitdiff
Add a FIXME to cleanup the CPATH handling. It's currently burried with
authorChandler Carruth <chandlerc@gmail.com>
Fri, 4 Nov 2011 07:12:58 +0000 (07:12 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 4 Nov 2011 07:12:58 +0000 (07:12 +0000)
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

lib/Driver/Tools.cpp

index 98c2d28a9cf782744d298fdc516654f18d322747..24f88d9eb5501baaf6658df81e5dd9c47054942f 100644 (file)
@@ -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"));