]> granicus.if.org Git - clang/commitdiff
[Parse] Document PrintStats, SkipFunctionBodies
authorBrian Gesiak <modocache@gmail.com>
Thu, 10 Aug 2017 15:30:35 +0000 (15:30 +0000)
committerBrian Gesiak <modocache@gmail.com>
Thu, 10 Aug 2017 15:30:35 +0000 (15:30 +0000)
Summary:
Add documentation for `clang::ParseAST` parameters `PrintStats` and
`SkipFunctionBodies`. Also, remove a tiny bit of trailing whitespace.

Reviewers: craig.topper, doug.gregor, erikjv

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D36530

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310609 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/ParseAST.h

index 21f9701c3ed8b3765fe721d5c2f3ad44fc54da32..4c70f03b6b6a867e66335dc3432acf1465e15841 100644 (file)
@@ -29,10 +29,13 @@ namespace clang {
   /// This operation inserts the parsed decls into the translation
   /// unit held by Ctx.
   ///
+  /// \param PrintStats Whether to print LLVM statistics related to parsing.
   /// \param TUKind The kind of translation unit being parsed.
-  ///
   /// \param CompletionConsumer If given, an object to consume code completion
   /// results.
+  /// \param SkipFunctionBodies Whether to skip parsing of function bodies.
+  /// This option can be used, for example, to speed up searches for
+  /// delcarations/definitions when indexing.
   void ParseAST(Preprocessor &pp, ASTConsumer *C,
                 ASTContext &Ctx, bool PrintStats = false,
                 TranslationUnitKind TUKind = TU_Complete,
@@ -43,7 +46,7 @@ namespace clang {
   /// abstract syntax tree.
   void ParseAST(Sema &S, bool PrintStats = false,
                 bool SkipFunctionBodies = false);
-  
+
 }  // end namespace clang
 
 #endif