diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-06-15 11:24:54 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-06-15 11:24:54 +0000 |
commit | f61189768be9a4cd0a8fb63991456b6698cbb9fc (patch) | |
tree | b7cfea0376268d8a8c00c397936ce48f7921b40f /include/clang/AST/StmtCXX.h | |
parent | 32c03b723d04144ec6ac6d7c873ceb6c3749d57b (diff) |
Revert accidential "[MSVC] Late parsing of in-class defined member functions in template"
This reverts commit 0253605771b8bd9d414aba74fe2742c730d6fd1a.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/StmtCXX.h')
-rw-r--r-- | include/clang/AST/StmtCXX.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/include/clang/AST/StmtCXX.h b/include/clang/AST/StmtCXX.h index 6c705cf596..1d29c228a4 100644 --- a/include/clang/AST/StmtCXX.h +++ b/include/clang/AST/StmtCXX.h @@ -18,7 +18,6 @@ #include "clang/AST/Expr.h" #include "clang/AST/NestedNameSpecifier.h" #include "clang/AST/Stmt.h" -#include "clang/Lex/Token.h" #include "llvm/Support/Compiler.h" namespace clang { @@ -418,51 +417,6 @@ public: } }; -/// This represents a group of statements like { stmt stmt } that must be parsed -/// only during instantiation. Required for better MSVC compatibility. -class MSLateParsedCompoundStmt final - : public Stmt, - private llvm::TrailingObjects<MSLateParsedCompoundStmt, Token> { - friend class TrailingObjects; - friend class ASTStmtReader; - SourceLocation LBraceLoc, RBraceLoc; - StringRef StringRep; - unsigned NumToks; - - MSLateParsedCompoundStmt() - : Stmt(MSLateParsedCompoundStmtClass), NumToks(0) {} - - /// Set tokens for the statement. - void init(ASTContext &C, SourceLocation LB, SourceLocation RB, - ArrayRef<Token> Tokens, StringRef Rep); - -public: - static MSLateParsedCompoundStmt *Create(ASTContext &C, SourceLocation LB, - SourceLocation RB, - ArrayRef<Token> Tokens, - StringRef Rep); - /// Build an empty statement. - static MSLateParsedCompoundStmt *CreateEmpty(ASTContext &C, - unsigned NumTokens); - - SourceLocation getLocStart() const LLVM_READONLY { return LBraceLoc; } - SourceLocation getLocEnd() const LLVM_READONLY { return RBraceLoc; } - - /// Returns representation of the statement as a string. - StringRef getStringRepresentation() const { return StringRep; } - - /// Get list of tokens associated with the statement. - ArrayRef<Token> tokens() const; - - child_range children() { - return child_range(child_iterator(), child_iterator()); - } - - static bool classof(const Stmt *S) { - return S->getStmtClass() == MSLateParsedCompoundStmtClass; - } -}; - } // end namespace clang #endif |