]> granicus.if.org Git - clang/commitdiff
[Parse] Document Parser::SkipFunctionBodies
authorBrian Gesiak <modocache@gmail.com>
Thu, 10 Aug 2017 17:02:04 +0000 (17:02 +0000)
committerBrian Gesiak <modocache@gmail.com>
Thu, 10 Aug 2017 17:02:04 +0000 (17:02 +0000)
Reviewers: erikjv, doug.gregor

Subscribers: cfe-commits

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

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

include/clang/Parse/Parser.h

index 21d699ec402e54242154a5e5cbc3555b9d721cf2..03a09e57c746151bc21c5bf43c8b22307366541f 100644 (file)
@@ -253,6 +253,10 @@ class Parser : public CodeCompletionHandler {
   /// be NULL.
   bool ParsingInObjCContainer;
 
+  /// Whether to skip parsing of function bodies.
+  ///
+  /// This option can be used, for example, to speed up searches for
+  /// delcarations/definitions when indexing.
   bool SkipFunctionBodies;
 
   /// The location of the expression statement that is being parsed right now.