From 2e0b0cf6b32b8c325c5aa71e83835b1cb47900c9 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 8 Oct 2013 19:50:01 +0000 Subject: [PATCH] Suggest people use -Xclang not -cc1 when passing options to the frontend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192222 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/IntroductionToTheClangAST.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/IntroductionToTheClangAST.rst b/docs/IntroductionToTheClangAST.rst index fe6bb1e5c7..600a6c884c 100644 --- a/docs/IntroductionToTheClangAST.rst +++ b/docs/IntroductionToTheClangAST.rst @@ -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 <> ... cutting out internal declarations of clang ... `-FunctionDecl 0x5aeab50 f 'int (int)' -- 2.40.0