]> granicus.if.org Git - clang/commitdiff
Make comments::Parser and comments::Sema noncopyable.
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 25 Jul 2012 00:02:45 +0000 (00:02 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 25 Jul 2012 00:02:45 +0000 (00:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160702 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CommentParser.h
include/clang/AST/CommentSema.h

index 468468da18c3709572b5dbd333a8faa499937444..43c669adba0631bb04b6aa98864781f84a226c8b 100644 (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;
index 56d61f1693c223f190571d38839275818fb0ae21..17d9ab7761a21fbf1f39bd342b8560416801babd 100644 (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;