[clang-tools-extra] r178172 - Added informational comment about using -x c++.

John Thompson John.Thompson.JTSoftware at gmail.com
Wed Mar 27 12:31:23 PDT 2013


Author: jtsoftware
Date: Wed Mar 27 14:31:22 2013
New Revision: 178172

URL: http://llvm.org/viewvc/llvm-project?rev=178172&view=rev
Log:
Added informational comment about using -x c++.

Modified:
    clang-tools-extra/trunk/modularize/Modularize.cpp

Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=178172&r1=178171&r2=178172&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Wed Mar 27 14:31:22 2013
@@ -28,6 +28,10 @@
 // to the header list file directory.  Use -prefix to specify a different
 // directory.
 //
+// Note that by default, the underlying Clang front end assumes .h files
+// contain C source.  If your .h files in the file list contain C++ source,
+// you should append the following to your command lines: -x c++ 
+//
 // Modularize will do normal parsing, reporting normal errors and warnings,
 // but will also report special error messages like the following:
 //





More information about the cfe-commits mailing list