Make comments::Parser and comments::Sema noncopyable.

llvm-svn: 160702
This commit is contained in:
Dmitri Gribenko 2012-07-25 00:02:45 +00:00
parent a92cf29f0d
commit e6af54af9b
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;