From ec1b330cc309efa2f0835e8d83892ea2c89e3ae1 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sat, 15 Sep 2012 20:16:46 +0000 Subject: [PATCH] Make PTHManager properly noncopyable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163982 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/PTHManager.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/clang/Lex/PTHManager.h b/include/clang/Lex/PTHManager.h index 44f9ab39f3..e64dbd8bbc 100644 --- a/include/clang/Lex/PTHManager.h +++ b/include/clang/Lex/PTHManager.h @@ -81,9 +81,8 @@ class PTHManager : public IdentifierInfoLookup { void* stringIdLookup, unsigned numIds, const unsigned char* spellingBase, const char *originalSourceFile); - // Do not implement. - PTHManager(); - void operator=(const PTHManager&); + PTHManager(const PTHManager &) LLVM_DELETED_FUNCTION; + void operator=(const PTHManager &) LLVM_DELETED_FUNCTION; /// getSpellingAtPTHOffset - Used by PTHLexer classes to get the cached /// spelling for a token. -- 2.50.1