r192222 - Suggest people use -Xclang not -cc1 when passing options to the frontend.
Richard Smith
richard-llvm at metafoo.co.uk
Tue Oct 8 12:50:01 PDT 2013
Author: rsmith
Date: Tue Oct 8 14:50:01 2013
New Revision: 192222
URL: http://llvm.org/viewvc/llvm-project?rev=192222&view=rev
Log:
Suggest people use -Xclang not -cc1 when passing options to the frontend.
Modified:
cfe/trunk/docs/IntroductionToTheClangAST.rst
Modified: cfe/trunk/docs/IntroductionToTheClangAST.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/IntroductionToTheClangAST.rst?rev=192222&r1=192221&r2=192222&view=diff
==============================================================================
--- cfe/trunk/docs/IntroductionToTheClangAST.rst (original)
+++ cfe/trunk/docs/IntroductionToTheClangAST.rst Tue Oct 8 14:50:01 2013
@@ -46,9 +46,9 @@ Let's look at a simple example AST:
return result;
}
- # Clang by default is a frontend for many tools; -cc1 tells it to directly
- # use the C++ compiler mode.
- $ clang -cc1 -ast-dump test.cc
+ # Clang by default is a frontend for many tools; -Xclang is used to pass
+ # options directly to the C++ frontend.
+ $ clang -Xclang -ast-dump -fsyntax-only test.cc
TranslationUnitDecl 0x5aea0d0 <<invalid sloc>>
... cutting out internal declarations of clang ...
`-FunctionDecl 0x5aeab50 <test.cc:1:1, line:4:1> f 'int (int)'
More information about the cfe-commits
mailing list