]> granicus.if.org Git - clang/commitdiff
Move the TentativeParsingResult enum closer to where it gets used.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 5 Oct 2008 17:02:44 +0000 (17:02 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 5 Oct 2008 17:02:44 +0000 (17:02 +0000)
No functionality change.

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

include/clang/Parse/Parser.h

index 75f2e596457f82abae12888787550fa7f57545c2..cfff592b6548220c70182af443b46e0e5c0cbdce 100644 (file)
@@ -572,15 +572,6 @@ private:
   bool isTypeSpecifierQualifier() const;
   bool isTypeQualifier() const;
 
-  /// TentativeParsingResult - Used as the result value for functions whose
-  /// purpose is to disambiguate C++ constructs by "tentatively parsing" them.
-  enum TentativeParsingResult {
-    TPR_true,
-    TPR_false,
-    TPR_ambiguous,
-    TPR_error
-  };
-
   /// isDeclarationStatement - Disambiguates between a declaration or an
   /// expression statement, when parsing function bodies.
   /// Returns true for declaration, false for expression.
@@ -626,6 +617,15 @@ private:
   /// the function returns true to let the declaration parsing code handle it.
   bool isCXXConditionDeclaration();
 
+  /// TentativeParsingResult - Used as the result value for functions whose
+  /// purpose is to disambiguate C++ constructs by "tentatively parsing" them.
+  enum TentativeParsingResult {
+    TPR_true,
+    TPR_false,
+    TPR_ambiguous,
+    TPR_error
+  };
+
   /// isCXXDeclarationSpecifier - Returns TPR_true if it is a declaration
   /// specifier, TPR_false if it is not, TPR_ambiguous if it could be either
   /// a decl-specifier or a function-style cast, and TPR_error if a parsing