diff --git a/clang/docs/IntroductionToTheClangAST.rst b/clang/docs/IntroductionToTheClangAST.rst index fe6bb1e5c7a9..600a6c884cb9 100644 --- a/clang/docs/IntroductionToTheClangAST.rst +++ b/clang/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)'