From: Dmitri Gribenko Date: Wed, 25 Jul 2012 00:02:45 +0000 (+0000) Subject: Make comments::Parser and comments::Sema noncopyable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f36366c85dc81d67d70efdeeea4cfc382053feb;p=clang Make comments::Parser and comments::Sema noncopyable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160702 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/CommentParser.h b/include/clang/AST/CommentParser.h index 468468da18..43c669adba 100644 --- a/include/clang/AST/CommentParser.h +++ b/include/clang/AST/CommentParser.h @@ -27,6 +27,9 @@ namespace comments { /// Doxygen comment parser. class Parser { + Parser(const Parser&); // DO NOT IMPLEMENT + void operator=(const Parser&); // DO NOT IMPLEMENT + friend class TextTokenRetokenizer; Lexer &L; diff --git a/include/clang/AST/CommentSema.h b/include/clang/AST/CommentSema.h index 56d61f1693..17d9ab7761 100644 --- a/include/clang/AST/CommentSema.h +++ b/include/clang/AST/CommentSema.h @@ -30,6 +30,9 @@ class SourceMgr; namespace comments { class Sema { + Sema(const Sema&); // DO NOT IMPLEMENT + void operator=(const Sema&); // DO NOT IMPLEMENT + /// Allocator for AST nodes. llvm::BumpPtrAllocator &Allocator;