From 6f36366c85dc81d67d70efdeeea4cfc382053feb Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 25 Jul 2012 00:02:45 +0000 Subject: [PATCH] Make comments::Parser and comments::Sema noncopyable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160702 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/CommentParser.h | 3 +++ include/clang/AST/CommentSema.h | 3 +++ 2 files changed, 6 insertions(+) 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; -- 2.40.0