aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-25 00:02:45 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-25 00:02:45 +0000
commit6f36366c85dc81d67d70efdeeea4cfc382053feb (patch)
tree01961c3e3446eb0ce46905c1504b0144b636cff9
parent2e7210458d391159b121edb77e3b7f35b69f4f68 (diff)
Make comments::Parser and comments::Sema noncopyable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160702 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/CommentParser.h3
-rw-r--r--include/clang/AST/CommentSema.h3
2 files changed, 6 insertions, 0 deletions
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;