diff options
Diffstat (limited to 'clang/include/clang/Parse/Parser.h')
| -rw-r--r-- | clang/include/clang/Parse/Parser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h index 8ade37479b2..bc5a3a5adcb 100644 --- a/clang/include/clang/Parse/Parser.h +++ b/clang/include/clang/Parse/Parser.h @@ -158,6 +158,8 @@ public: OwningExprResult ExprError(const DiagnosticBuilder &) { return ExprError(); } OwningStmtResult StmtError(const DiagnosticBuilder &) { return StmtError(); } + OwningExprResult ExprEmpty() { return OwningExprResult(Actions, false); } + // Parsing methods. /// ParseTranslationUnit - All in one method that initializes parses, and @@ -663,6 +665,11 @@ private: OwningExprResult ParsePostfixExpressionSuffix(OwningExprResult LHS); OwningExprResult ParseSizeofAlignofExpression(); OwningExprResult ParseBuiltinPrimaryExpression(); + + OwningExprResult ParseExprAfterTypeofSizeofAlignof(const Token &OpTok, + bool &isCastExpr, + TypeTy *&CastTy, + SourceRange &CastRange); static const unsigned ExprListSize = 12; typedef llvm::SmallVector<ExprTy*, ExprListSize> ExprListTy; |

