[cfe-commits] r57115 - /cfe/trunk/include/clang/Parse/Parser.h
Argiris Kirtzidis
akyrtzi at gmail.com
Sun Oct 5 10:02:44 PDT 2008
Author: akirtzidis
Date: Sun Oct 5 12:02:44 2008
New Revision: 57115
URL: http://llvm.org/viewvc/llvm-project?rev=57115&view=rev
Log:
Move the TentativeParsingResult enum closer to where it gets used.
No functionality change.
Modified:
cfe/trunk/include/clang/Parse/Parser.h
Modified: cfe/trunk/include/clang/Parse/Parser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Parser.h?rev=57115&r1=57114&r2=57115&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Parser.h (original)
+++ cfe/trunk/include/clang/Parse/Parser.h Sun Oct 5 12:02:44 2008
@@ -572,15 +572,6 @@
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 @@
/// 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
More information about the cfe-commits
mailing list