r261625 - Print options, if requested.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 23 02:29:02 PST 2016


Author: alexfh
Date: Tue Feb 23 04:29:02 2016
New Revision: 261625

URL: http://llvm.org/viewvc/llvm-project?rev=261625&view=rev
Log:
Print options, if requested.

Modified:
    cfe/trunk/lib/Tooling/CommonOptionsParser.cpp

Modified: cfe/trunk/lib/Tooling/CommonOptionsParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/CommonOptionsParser.cpp?rev=261625&r1=261624&r2=261625&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/CommonOptionsParser.cpp (original)
+++ cfe/trunk/lib/Tooling/CommonOptionsParser.cpp Tue Feb 23 04:29:02 2016
@@ -118,6 +118,8 @@ CommonOptionsParser::CommonOptionsParser
 
   Compilations.reset(FixedCompilationDatabase::loadFromCommandLine(argc, argv));
   cl::ParseCommandLineOptions(argc, argv, Overview);
+  cl::PrintOptionValues();
+
   SourcePathList = SourcePaths;
   if ((OccurrencesFlag == cl::ZeroOrMore || OccurrencesFlag == cl::Optional) &&
       SourcePathList.empty())




More information about the cfe-commits mailing list