[cfe-commits] r163983 - in /cfe/trunk: include/clang/AST/ include/clang/ASTMatchers/ include/clang/Basic/ include/clang/Driver/ include/clang/Frontend/ include/clang/Lex/ include/clang/Parse/ include/clang/Rewrite/Core/ include/clang/Sema/ includ
Sean Silva
silvas at purdue.edu
Sat Sep 15 14:33:19 PDT 2012
Did you do this manually? or did you make a tool with Clang? If it's the
latter, that's awesome and it would be cool if you wrote a blog post for <
http://blog.llvm.org/> about dogfooding clang.
--Sean Silva
On Sat, Sep 15, 2012 at 4:20 PM, Dmitri Gribenko <gribozavr at gmail.com>wrote:
> Author: gribozavr
> Date: Sat Sep 15 15:20:27 2012
> New Revision: 163983
>
> URL: http://llvm.org/viewvc/llvm-project?rev=163983&view=rev
> Log:
> Use LLVM_DELETED_FUNCTION in place of 'DO NOT IMPLEMENT' comments.
>
> Modified:
> cfe/trunk/include/clang/AST/ASTContext.h
> cfe/trunk/include/clang/AST/DeclObjC.h
> cfe/trunk/include/clang/AST/Expr.h
> cfe/trunk/include/clang/AST/RecordLayout.h
> cfe/trunk/include/clang/AST/Type.h
> cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h
> cfe/trunk/include/clang/Basic/Diagnostic.h
> cfe/trunk/include/clang/Basic/IdentifierTable.h
> cfe/trunk/include/clang/Driver/Arg.h
> cfe/trunk/include/clang/Driver/ArgList.h
> cfe/trunk/include/clang/Frontend/ASTUnit.h
> cfe/trunk/include/clang/Frontend/CompilerInstance.h
> cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h
> cfe/trunk/include/clang/Lex/HeaderMap.h
> cfe/trunk/include/clang/Lex/Lexer.h
> cfe/trunk/include/clang/Lex/PTHLexer.h
> cfe/trunk/include/clang/Lex/PreprocessorLexer.h
> cfe/trunk/include/clang/Lex/TokenLexer.h
> cfe/trunk/include/clang/Parse/Parser.h
> cfe/trunk/include/clang/Rewrite/Core/DeltaTree.h
> cfe/trunk/include/clang/Rewrite/Core/RewriteRope.h
> cfe/trunk/include/clang/Rewrite/Core/TokenRewriter.h
> cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h
> cfe/trunk/include/clang/Sema/DeclSpec.h
> cfe/trunk/include/clang/Sema/DelayedDiagnostic.h
> cfe/trunk/include/clang/Sema/Sema.h
> cfe/trunk/include/clang/Sema/TemplateDeduction.h
> cfe/trunk/include/clang/Serialization/ASTReader.h
> cfe/trunk/include/clang/Serialization/ContinuousRangeMap.h
> cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
> cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
> cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
> cfe/trunk/lib/CodeGen/CGRecordLayout.h
> cfe/trunk/lib/CodeGen/CodeGenFunction.h
> cfe/trunk/lib/CodeGen/CodeGenModule.h
> cfe/trunk/lib/Parse/RAIIObjectsForParser.h
> cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
> cfe/trunk/tools/libclang/IndexingContext.h
>
> Modified: cfe/trunk/include/clang/AST/ASTContext.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/AST/ASTContext.h (original)
> +++ cfe/trunk/include/clang/AST/ASTContext.h Sat Sep 15 15:20:27 2012
> @@ -2027,8 +2027,8 @@
> static unsigned NumImplicitDestructorsDeclared;
>
> private:
> - ASTContext(const ASTContext&); // DO NOT IMPLEMENT
> - void operator=(const ASTContext&); // DO NOT IMPLEMENT
> + ASTContext(const ASTContext &) LLVM_DELETED_FUNCTION;
> + void operator=(const ASTContext &) LLVM_DELETED_FUNCTION;
>
> public:
> /// \brief Initialize built-in types.
>
> Modified: cfe/trunk/include/clang/AST/DeclObjC.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/AST/DeclObjC.h (original)
> +++ cfe/trunk/include/clang/AST/DeclObjC.h Sat Sep 15 15:20:27 2012
> @@ -33,8 +33,8 @@
> class CXXCtorInitializer;
>
> class ObjCListBase {
> - void operator=(const ObjCListBase &); // DO NOT IMPLEMENT
> - ObjCListBase(const ObjCListBase&); // DO NOT IMPLEMENT
> + ObjCListBase(const ObjCListBase &) LLVM_DELETED_FUNCTION;
> + void operator=(const ObjCListBase &) LLVM_DELETED_FUNCTION;
> protected:
> /// List is an array of pointers to objects that are not owned by this
> object.
> void **List;
>
> Modified: cfe/trunk/include/clang/AST/Expr.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/AST/Expr.h (original)
> +++ cfe/trunk/include/clang/AST/Expr.h Sat Sep 15 15:20:27 2012
> @@ -1132,8 +1132,8 @@
>
> bool hasAllocation() const { return llvm::APInt::getNumWords(BitWidth)
> > 1; }
>
> - APNumericStorage(const APNumericStorage&); // do not implement
> - APNumericStorage& operator=(const APNumericStorage&); // do not
> implement
> + APNumericStorage(const APNumericStorage &) LLVM_DELETED_FUNCTION;
> + void operator=(const APNumericStorage &) LLVM_DELETED_FUNCTION;
>
> protected:
> APNumericStorage() : VAL(0), BitWidth(0) { }
>
> Modified: cfe/trunk/include/clang/AST/RecordLayout.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecordLayout.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/AST/RecordLayout.h (original)
> +++ cfe/trunk/include/clang/AST/RecordLayout.h Sat Sep 15 15:20:27 2012
> @@ -136,8 +136,8 @@
>
> void Destroy(ASTContext &Ctx);
>
> - ASTRecordLayout(const ASTRecordLayout&); // DO NOT IMPLEMENT
> - void operator=(const ASTRecordLayout&); // DO NOT IMPLEMENT
> + ASTRecordLayout(const ASTRecordLayout &) LLVM_DELETED_FUNCTION;
> + void operator=(const ASTRecordLayout &) LLVM_DELETED_FUNCTION;
> public:
>
> /// getAlignment - Get the record alignment in characters.
>
> Modified: cfe/trunk/include/clang/AST/Type.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/AST/Type.h (original)
> +++ cfe/trunk/include/clang/AST/Type.h Sat Sep 15 15:20:27 2012
> @@ -1181,8 +1181,8 @@
> };
>
> private:
> - Type(const Type&); // DO NOT IMPLEMENT.
> - void operator=(const Type&); // DO NOT IMPLEMENT.
> + Type(const Type &) LLVM_DELETED_FUNCTION;
> + void operator=(const Type &) LLVM_DELETED_FUNCTION;
>
> /// Bitfields required by the Type class.
> class TypeBitfields {
>
> Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h (original)
> +++ cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h Sat Sep 15
> 15:20:27 2012
> @@ -174,8 +174,8 @@
> BoundNodesTree build() const;
>
> private:
> - BoundNodesTreeBuilder(const BoundNodesTreeBuilder&); // DO NOT
> IMPLEMENT
> - void operator=(const BoundNodesTreeBuilder&); // DO NOT IMPLEMENT
> + BoundNodesTreeBuilder(const BoundNodesTreeBuilder &)
> LLVM_DELETED_FUNCTION;
> + void operator=(const BoundNodesTreeBuilder &) LLVM_DELETED_FUNCTION;
>
> BoundNodesMap Bindings;
>
>
> Modified: cfe/trunk/include/clang/Basic/Diagnostic.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Diagnostic.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/Diagnostic.h (original)
> +++ cfe/trunk/include/clang/Basic/Diagnostic.h Sat Sep 15 15:20:27 2012
> @@ -837,7 +837,7 @@
> /// call to ForceEmit.
> mutable bool IsForceEmit;
>
> - void operator=(const DiagnosticBuilder&); // DO NOT IMPLEMENT
> + void operator=(const DiagnosticBuilder &) LLVM_DELETED_FUNCTION;
> friend class DiagnosticsEngine;
>
> DiagnosticBuilder()
>
> Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/IdentifierTable.h (original)
> +++ cfe/trunk/include/clang/Basic/IdentifierTable.h Sat Sep 15 15:20:27
> 2012
> @@ -346,8 +346,8 @@
> /// actual functionality.
> class IdentifierIterator {
> private:
> - IdentifierIterator(const IdentifierIterator&); // Do not implement
> - IdentifierIterator &operator=(const IdentifierIterator&); // Do not
> implement
> + IdentifierIterator(const IdentifierIterator &) LLVM_DELETED_FUNCTION;
> + void operator=(const IdentifierIterator &) LLVM_DELETED_FUNCTION;
>
> protected:
> IdentifierIterator() { }
> @@ -695,8 +695,8 @@
> /// multi-keyword caching.
> class SelectorTable {
> void *Impl; // Actually a SelectorTableImpl
> - SelectorTable(const SelectorTable&); // DISABLED: DO NOT IMPLEMENT
> - void operator=(const SelectorTable&); // DISABLED: DO NOT IMPLEMENT
> + SelectorTable(const SelectorTable &) LLVM_DELETED_FUNCTION;
> + void operator=(const SelectorTable &) LLVM_DELETED_FUNCTION;
> public:
> SelectorTable();
> ~SelectorTable();
>
> Modified: cfe/trunk/include/clang/Driver/Arg.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Arg.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Driver/Arg.h (original)
> +++ cfe/trunk/include/clang/Driver/Arg.h Sat Sep 15 15:20:27 2012
> @@ -33,8 +33,8 @@
> /// ArgList to provide efficient iteration over all instances of a
> /// particular option.
> class Arg {
> - Arg(const Arg &); // DO NOT IMPLEMENT
> - void operator=(const Arg &); // DO NOT IMPLEMENT
> + Arg(const Arg &) LLVM_DELETED_FUNCTION;
> + void operator=(const Arg &) LLVM_DELETED_FUNCTION;
>
> private:
> /// \brief The option this argument is an instance of.
>
> Modified: cfe/trunk/include/clang/Driver/ArgList.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ArgList.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Driver/ArgList.h (original)
> +++ cfe/trunk/include/clang/Driver/ArgList.h Sat Sep 15 15:20:27 2012
> @@ -94,8 +94,8 @@
> /// and to iterate over groups of arguments.
> class ArgList {
> private:
> - ArgList(const ArgList &); // DO NOT IMPLEMENT
> - void operator=(const ArgList &); // DO NOT IMPLEMENT
> + ArgList(const ArgList &) LLVM_DELETED_FUNCTION;
> + void operator=(const ArgList &) LLVM_DELETED_FUNCTION;
>
> public:
> typedef SmallVector<Arg*, 16> arglist_type;
>
> Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ASTUnit.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Frontend/ASTUnit.h (original)
> +++ cfe/trunk/include/clang/Frontend/ASTUnit.h Sat Sep 15 15:20:27 2012
> @@ -374,8 +374,8 @@
> /// \brief Clear out and deallocate
> void ClearCachedCompletionResults();
>
> - ASTUnit(const ASTUnit&); // DO NOT IMPLEMENT
> - ASTUnit &operator=(const ASTUnit &); // DO NOT IMPLEMENT
> + ASTUnit(const ASTUnit &) LLVM_DELETED_FUNCTION;
> + void operator=(const ASTUnit &) LLVM_DELETED_FUNCTION;
>
> explicit ASTUnit(bool MainFileIsAST);
>
>
> Modified: cfe/trunk/include/clang/Frontend/CompilerInstance.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/CompilerInstance.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Frontend/CompilerInstance.h (original)
> +++ cfe/trunk/include/clang/Frontend/CompilerInstance.h Sat Sep 15
> 15:20:27 2012
> @@ -130,8 +130,8 @@
> /// The list of active output files.
> std::list<OutputFile> OutputFiles;
>
> - void operator=(const CompilerInstance &); // DO NOT IMPLEMENT
> - CompilerInstance(const CompilerInstance&); // DO NOT IMPLEMENT
> + CompilerInstance(const CompilerInstance &) LLVM_DELETED_FUNCTION;
> + void operator=(const CompilerInstance &) LLVM_DELETED_FUNCTION;
> public:
> CompilerInstance();
> ~CompilerInstance();
>
> Modified: cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h (original)
> +++ cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h Sat Sep 15
> 15:20:27 2012
> @@ -146,8 +146,8 @@
> }
>
> private:
> - Directive(const Directive&); // DO NOT IMPLEMENT
> - void operator=(const Directive&); // DO NOT IMPLEMENT
> + Directive(const Directive &) LLVM_DELETED_FUNCTION;
> + void operator=(const Directive &) LLVM_DELETED_FUNCTION;
> };
>
> typedef std::vector<Directive*> DirectiveList;
>
> Modified: cfe/trunk/include/clang/Lex/HeaderMap.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/HeaderMap.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Lex/HeaderMap.h (original)
> +++ cfe/trunk/include/clang/Lex/HeaderMap.h Sat Sep 15 15:20:27 2012
> @@ -15,6 +15,7 @@
> #define LLVM_CLANG_LEX_HEADERMAP_H
>
> #include "clang/Basic/LLVM.h"
> +#include "llvm/Support/Compiler.h"
>
> namespace llvm {
> class MemoryBuffer;
> @@ -30,8 +31,8 @@
> /// symlinks to files. Its advantages are that it is dense and more
> efficient
> /// to create and process than a directory of symlinks.
> class HeaderMap {
> - HeaderMap(const HeaderMap&); // DO NOT IMPLEMENT
> - void operator=(const HeaderMap&); // DO NOT IMPLEMENT
> + HeaderMap(const HeaderMap &) LLVM_DELETED_FUNCTION;
> + void operator=(const HeaderMap &) LLVM_DELETED_FUNCTION;
>
> const llvm::MemoryBuffer *FileBuffer;
> bool NeedsBSwap;
>
> Modified: cfe/trunk/include/clang/Lex/Lexer.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Lexer.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Lex/Lexer.h (original)
> +++ cfe/trunk/include/clang/Lex/Lexer.h Sat Sep 15 15:20:27 2012
> @@ -83,8 +83,8 @@
> // CurrentConflictMarkerState - The kind of conflict marker we are
> handling.
> ConflictMarkerKind CurrentConflictMarkerState;
>
> - Lexer(const Lexer&); // DO NOT IMPLEMENT
> - void operator=(const Lexer&); // DO NOT IMPLEMENT
> + Lexer(const Lexer &) LLVM_DELETED_FUNCTION;
> + void operator=(const Lexer &) LLVM_DELETED_FUNCTION;
> friend class Preprocessor;
>
> void InitLexer(const char *BufStart, const char *BufPtr, const char
> *BufEnd);
>
> Modified: cfe/trunk/include/clang/Lex/PTHLexer.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PTHLexer.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Lex/PTHLexer.h (original)
> +++ cfe/trunk/include/clang/Lex/PTHLexer.h Sat Sep 15 15:20:27 2012
> @@ -44,8 +44,8 @@
> /// to process when doing quick skipping of preprocessor blocks.
> const unsigned char* CurPPCondPtr;
>
> - PTHLexer(const PTHLexer&); // DO NOT IMPLEMENT
> - void operator=(const PTHLexer&); // DO NOT IMPLEMENT
> + PTHLexer(const PTHLexer &) LLVM_DELETED_FUNCTION;
> + void operator=(const PTHLexer &) LLVM_DELETED_FUNCTION;
>
> /// ReadToken - Used by PTHLexer to read tokens TokBuf.
> void ReadToken(Token& T);
>
> Modified: cfe/trunk/include/clang/Lex/PreprocessorLexer.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessorLexer.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Lex/PreprocessorLexer.h (original)
> +++ cfe/trunk/include/clang/Lex/PreprocessorLexer.h Sat Sep 15 15:20:27
> 2012
> @@ -69,8 +69,8 @@
> /// we are currently in.
> SmallVector<PPConditionalInfo, 4> ConditionalStack;
>
> - PreprocessorLexer(const PreprocessorLexer&); // DO NOT
> IMPLEMENT
> - void operator=(const PreprocessorLexer&); // DO NOT IMPLEMENT
> + PreprocessorLexer(const PreprocessorLexer &) LLVM_DELETED_FUNCTION;
> + void operator=(const PreprocessorLexer &) LLVM_DELETED_FUNCTION;
> friend class Preprocessor;
>
> PreprocessorLexer(Preprocessor *pp, FileID fid);
>
> Modified: cfe/trunk/include/clang/Lex/TokenLexer.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/TokenLexer.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Lex/TokenLexer.h (original)
> +++ cfe/trunk/include/clang/Lex/TokenLexer.h Sat Sep 15 15:20:27 2012
> @@ -91,8 +91,8 @@
> /// should not be subject to further macro expansion.
> bool DisableMacroExpansion : 1;
>
> - TokenLexer(const TokenLexer&); // DO NOT IMPLEMENT
> - void operator=(const TokenLexer&); // DO NOT IMPLEMENT
> + TokenLexer(const TokenLexer &) LLVM_DELETED_FUNCTION;
> + void operator=(const TokenLexer &) LLVM_DELETED_FUNCTION;
> public:
> /// Create a TokenLexer for the specified macro with the specified
> actual
> /// arguments. Note that this ctor takes ownership of the ActualArgs
> pointer.
>
> Modified: cfe/trunk/include/clang/Parse/Parser.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Parser.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Parse/Parser.h (original)
> +++ cfe/trunk/include/clang/Parse/Parser.h Sat Sep 15 15:20:27 2012
> @@ -655,8 +655,8 @@
> /// the parser will exit the scope.
> class ParseScope {
> Parser *Self;
> - ParseScope(const ParseScope&); // do not implement
> - ParseScope& operator=(const ParseScope&); // do not implement
> + ParseScope(const ParseScope &) LLVM_DELETED_FUNCTION;
> + void operator=(const ParseScope &) LLVM_DELETED_FUNCTION;
>
> public:
> // ParseScope - Construct a new object to manage a scope in the
> @@ -695,8 +695,8 @@
> class ParseScopeFlags {
> Scope *CurScope;
> unsigned OldFlags;
> - ParseScopeFlags(const ParseScopeFlags &); // do not implement
> - void operator=(const ParseScopeFlags &); // do not implement
> + ParseScopeFlags(const ParseScopeFlags &) LLVM_DELETED_FUNCTION;
> + void operator=(const ParseScopeFlags &) LLVM_DELETED_FUNCTION;
>
> public:
> ParseScopeFlags(Parser *Self, unsigned ScopeFlags, bool ManageFlags =
> true);
>
> Modified: cfe/trunk/include/clang/Rewrite/Core/DeltaTree.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Rewrite/Core/DeltaTree.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Rewrite/Core/DeltaTree.h (original)
> +++ cfe/trunk/include/clang/Rewrite/Core/DeltaTree.h Sat Sep 15 15:20:27
> 2012
> @@ -14,6 +14,8 @@
> #ifndef CLANG_REWRITE_DELTATREE_H
> #define CLANG_REWRITE_DELTATREE_H
>
> +#include "llvm/Support/Compiler.h"
> +
> namespace clang {
>
> /// DeltaTree - a multiway search tree (BTree) structure with some fancy
> @@ -25,7 +27,7 @@
> /// as well, without traversing the whole tree.
> class DeltaTree {
> void *Root; // "DeltaTreeNode *"
> - void operator=(const DeltaTree&); // DO NOT IMPLEMENT
> + void operator=(const DeltaTree &) LLVM_DELETED_FUNCTION;
> public:
> DeltaTree();
>
>
> Modified: cfe/trunk/include/clang/Rewrite/Core/RewriteRope.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Rewrite/Core/RewriteRope.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Rewrite/Core/RewriteRope.h (original)
> +++ cfe/trunk/include/clang/Rewrite/Core/RewriteRope.h Sat Sep 15 15:20:27
> 2012
> @@ -14,6 +14,8 @@
> #ifndef LLVM_CLANG_REWRITEROPE_H
> #define LLVM_CLANG_REWRITEROPE_H
>
> +#include "llvm/Support/Compiler.h"
> +
> #include <cstring>
> #include <cassert>
> #include <cstddef>
> @@ -153,7 +155,7 @@
>
> class RopePieceBTree {
> void /*RopePieceBTreeNode*/ *Root;
> - void operator=(const RopePieceBTree &); // DO NOT IMPLEMENT
> + void operator=(const RopePieceBTree &) LLVM_DELETED_FUNCTION;
> public:
> RopePieceBTree();
> RopePieceBTree(const RopePieceBTree &RHS);
>
> Modified: cfe/trunk/include/clang/Rewrite/Core/TokenRewriter.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Rewrite/Core/TokenRewriter.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Rewrite/Core/TokenRewriter.h (original)
> +++ cfe/trunk/include/clang/Rewrite/Core/TokenRewriter.h Sat Sep 15
> 15:20:27 2012
> @@ -43,8 +43,8 @@
> ///
> OwningPtr<ScratchBuffer> ScratchBuf;
>
> - TokenRewriter(const TokenRewriter&); // DO NOT IMPLEMENT
> - void operator=(const TokenRewriter&); // DO NOT IMPLEMENT.
> + TokenRewriter(const TokenRewriter &) LLVM_DELETED_FUNCTION;
> + void operator=(const TokenRewriter &) LLVM_DELETED_FUNCTION;
> public:
> /// TokenRewriter - This creates a TokenRewriter for the file with the
> /// specified FileID.
>
> Modified: cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h (original)
> +++ cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h Sat Sep 15
> 15:20:27 2012
> @@ -450,8 +450,8 @@
> /// entity being completed by this result.
> const char *BriefComment;
>
> - CodeCompletionString(const CodeCompletionString &); // DO NOT IMPLEMENT
> - CodeCompletionString &operator=(const CodeCompletionString &); // DITTO
> + CodeCompletionString(const CodeCompletionString &)
> LLVM_DELETED_FUNCTION;
> + void operator=(const CodeCompletionString &) LLVM_DELETED_FUNCTION;
>
> CodeCompletionString(const Chunk *Chunks, unsigned NumChunks,
> unsigned Priority, CXAvailabilityKind Availability,
>
> Modified: cfe/trunk/include/clang/Sema/DeclSpec.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/DeclSpec.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Sema/DeclSpec.h (original)
> +++ cfe/trunk/include/clang/Sema/DeclSpec.h Sat Sep 15 15:20:27 2012
> @@ -383,8 +383,8 @@
> T == TST_class);
> }
>
> - DeclSpec(const DeclSpec&); // DO NOT IMPLEMENT
> - void operator=(const DeclSpec&); // DO NOT IMPLEMENT
> + DeclSpec(const DeclSpec &) LLVM_DELETED_FUNCTION;
> + void operator=(const DeclSpec &) LLVM_DELETED_FUNCTION;
> public:
>
> DeclSpec(AttributeFactory &attrFactory)
>
> Modified: cfe/trunk/include/clang/Sema/DelayedDiagnostic.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/DelayedDiagnostic.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Sema/DelayedDiagnostic.h (original)
> +++ cfe/trunk/include/clang/Sema/DelayedDiagnostic.h Sat Sep 15 15:20:27
> 2012
> @@ -220,9 +220,8 @@
> const DelayedDiagnosticPool *Parent;
> llvm::SmallVector<DelayedDiagnostic, 4> Diagnostics;
>
> - // Do not implement.
> - DelayedDiagnosticPool(const DelayedDiagnosticPool &other);
> - DelayedDiagnosticPool &operator=(const DelayedDiagnosticPool &other);
> + DelayedDiagnosticPool(const DelayedDiagnosticPool &)
> LLVM_DELETED_FUNCTION;
> + void operator=(const DelayedDiagnosticPool &) LLVM_DELETED_FUNCTION;
> public:
> DelayedDiagnosticPool(const DelayedDiagnosticPool *parent) :
> Parent(parent) {}
> ~DelayedDiagnosticPool() {
>
> Modified: cfe/trunk/include/clang/Sema/Sema.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Sema/Sema.h (original)
> +++ cfe/trunk/include/clang/Sema/Sema.h Sat Sep 15 15:20:27 2012
> @@ -187,8 +187,8 @@
>
> /// Sema - This implements semantic analysis and AST building for C.
> class Sema {
> - Sema(const Sema&); // DO NOT IMPLEMENT
> - void operator=(const Sema&); // DO NOT IMPLEMENT
> + Sema(const Sema &) LLVM_DELETED_FUNCTION;
> + void operator=(const Sema &) LLVM_DELETED_FUNCTION;
> mutable const TargetAttributesSema* TheTargetAttributesSema;
> public:
> typedef OpaquePtr<DeclGroupRef> DeclGroupPtrTy;
>
> Modified: cfe/trunk/include/clang/Sema/TemplateDeduction.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/TemplateDeduction.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Sema/TemplateDeduction.h (original)
> +++ cfe/trunk/include/clang/Sema/TemplateDeduction.h Sat Sep 15 15:20:27
> 2012
> @@ -46,9 +46,8 @@
> /// SFINAE while performing template argument deduction.
> SmallVector<PartialDiagnosticAt, 4> SuppressedDiagnostics;
>
> - // do not implement these
> - TemplateDeductionInfo(const TemplateDeductionInfo&);
> - TemplateDeductionInfo &operator=(const TemplateDeductionInfo&);
> + TemplateDeductionInfo(const TemplateDeductionInfo &)
> LLVM_DELETED_FUNCTION;
> + void operator=(const TemplateDeductionInfo &) LLVM_DELETED_FUNCTION;
>
> public:
> TemplateDeductionInfo(ASTContext &Context, SourceLocation Loc)
>
> Modified: cfe/trunk/include/clang/Serialization/ASTReader.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTReader.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Serialization/ASTReader.h (original)
> +++ cfe/trunk/include/clang/Serialization/ASTReader.h Sat Sep 15 15:20:27
> 2012
> @@ -758,8 +758,8 @@
> ASTReader &Reader;
> enum ReadingKind PrevKind;
>
> - ReadingKindTracker(const ReadingKindTracker&); // do not implement
> - ReadingKindTracker &operator=(const ReadingKindTracker&);// do not
> implement
> + ReadingKindTracker(const ReadingKindTracker &) LLVM_DELETED_FUNCTION;
> + void operator=(const ReadingKindTracker &) LLVM_DELETED_FUNCTION;
>
> public:
> ReadingKindTracker(enum ReadingKind newKind, ASTReader &reader)
> @@ -862,8 +862,8 @@
> void Error(unsigned DiagID, StringRef Arg1 = StringRef(),
> StringRef Arg2 = StringRef());
>
> - ASTReader(const ASTReader&); // do not implement
> - ASTReader &operator=(const ASTReader &); // do not implement
> + ASTReader(const ASTReader &) LLVM_DELETED_FUNCTION;
> + void operator=(const ASTReader &) LLVM_DELETED_FUNCTION;
> public:
> /// \brief Load the AST file and validate its contents against the given
> /// Preprocessor.
>
> Modified: cfe/trunk/include/clang/Serialization/ContinuousRangeMap.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ContinuousRangeMap.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Serialization/ContinuousRangeMap.h (original)
> +++ cfe/trunk/include/clang/Serialization/ContinuousRangeMap.h Sat Sep 15
> 15:20:27 2012
> @@ -108,8 +108,8 @@
> class Builder {
> ContinuousRangeMap &Self;
>
> - Builder(const Builder&); // DO NOT IMPLEMENT
> - Builder &operator=(const Builder&); // DO NOT IMPLEMENT
> + Builder(const Builder&) LLVM_DELETED_FUNCTION;
> + Builder &operator=(const Builder&) LLVM_DELETED_FUNCTION;
>
> public:
> explicit Builder(ContinuousRangeMap &Self) : Self(Self) { }
>
> Modified:
> cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
> (original)
> +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
> Sat Sep 15 15:20:27 2012
> @@ -120,8 +120,7 @@
> const LocationContext *LCtx;
> llvm::PointerUnion<const Expr *, const Decl *> Origin;
>
> - // DO NOT IMPLEMENT
> - CallEvent &operator=(const CallEvent &);
> + void operator=(const CallEvent &) LLVM_DELETED_FUNCTION;
>
> protected:
> // This is user data for subclasses.
>
> Modified:
> cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
> (original)
> +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
> Sat Sep 15 15:20:27 2012
> @@ -97,8 +97,8 @@
> ExplodedNode *Pred);
>
> private:
> - CoreEngine(const CoreEngine&); // Do not implement.
> - CoreEngine& operator=(const CoreEngine&);
> + CoreEngine(const CoreEngine &) LLVM_DELETED_FUNCTION;
> + void operator=(const CoreEngine &) LLVM_DELETED_FUNCTION;
>
> ExplodedNode *generateCallExitBeginNode(ExplodedNode *N);
>
>
> Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
> +++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Sat Sep 15 15:20:27 2012
> @@ -789,8 +789,8 @@
> void setDataSize(CharUnits NewSize) { DataSize =
> Context.toBits(NewSize); }
> void setDataSize(uint64_t NewSize) { DataSize = NewSize; }
>
> - RecordLayoutBuilder(const RecordLayoutBuilder&); // DO NOT IMPLEMENT
> - void operator=(const RecordLayoutBuilder&); // DO NOT IMPLEMENT
> + RecordLayoutBuilder(const RecordLayoutBuilder &) LLVM_DELETED_FUNCTION;
> + void operator=(const RecordLayoutBuilder &) LLVM_DELETED_FUNCTION;
> public:
> static const CXXMethodDecl *ComputeKeyFunction(const CXXRecordDecl *RD);
> };
>
> Modified: cfe/trunk/lib/CodeGen/CGRecordLayout.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayout.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGRecordLayout.h (original)
> +++ cfe/trunk/lib/CodeGen/CGRecordLayout.h Sat Sep 15 15:20:27 2012
> @@ -166,8 +166,8 @@
> class CGRecordLayout {
> friend class CodeGenTypes;
>
> - CGRecordLayout(const CGRecordLayout&); // DO NOT IMPLEMENT
> - void operator=(const CGRecordLayout&); // DO NOT IMPLEMENT
> + CGRecordLayout(const CGRecordLayout &) LLVM_DELETED_FUNCTION;
> + void operator=(const CGRecordLayout &) LLVM_DELETED_FUNCTION;
>
> private:
> /// The LLVM type corresponding to this record layout; used when
>
> Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original)
> +++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Sat Sep 15 15:20:27 2012
> @@ -532,8 +532,8 @@
> /// CodeGenFunction - This class organizes the per-function state that is
> used
> /// while generating LLVM code.
> class CodeGenFunction : public CodeGenTypeCache {
> - CodeGenFunction(const CodeGenFunction&); // DO NOT IMPLEMENT
> - void operator=(const CodeGenFunction&); // DO NOT IMPLEMENT
> + CodeGenFunction(const CodeGenFunction &) LLVM_DELETED_FUNCTION;
> + void operator=(const CodeGenFunction &) LLVM_DELETED_FUNCTION;
>
> friend class CGCXXABI;
> public:
> @@ -794,8 +794,8 @@
> bool OldDidCallStackSave;
> bool PerformCleanup;
>
> - RunCleanupsScope(const RunCleanupsScope &); // DO NOT IMPLEMENT
> - RunCleanupsScope &operator=(const RunCleanupsScope &); // DO NOT
> IMPLEMENT
> + RunCleanupsScope(const RunCleanupsScope &) LLVM_DELETED_FUNCTION;
> + void operator=(const RunCleanupsScope &) LLVM_DELETED_FUNCTION;
>
> protected:
> CodeGenFunction& CGF;
> @@ -838,8 +838,8 @@
> SourceRange Range;
> bool PopDebugStack;
>
> - LexicalScope(const LexicalScope &); // DO NOT IMPLEMENT THESE
> - LexicalScope &operator=(const LexicalScope &);
> + LexicalScope(const LexicalScope &) LLVM_DELETED_FUNCTION;
> + void operator=(const LexicalScope &) LLVM_DELETED_FUNCTION;
>
> public:
> /// \brief Enter a new cleanup scope.
>
> Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)
> +++ cfe/trunk/lib/CodeGen/CodeGenModule.h Sat Sep 15 15:20:27 2012
> @@ -210,8 +210,8 @@
> /// CodeGenModule - This class organizes the cross-function state that is
> used
> /// while generating LLVM code.
> class CodeGenModule : public CodeGenTypeCache {
> - CodeGenModule(const CodeGenModule&); // DO NOT IMPLEMENT
> - void operator=(const CodeGenModule&); // DO NOT IMPLEMENT
> + CodeGenModule(const CodeGenModule &) LLVM_DELETED_FUNCTION;
> + void operator=(const CodeGenModule &) LLVM_DELETED_FUNCTION;
>
> typedef std::vector<std::pair<llvm::Constant*, int> > CtorList;
>
>
> Modified: cfe/trunk/lib/Parse/RAIIObjectsForParser.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/RAIIObjectsForParser.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Parse/RAIIObjectsForParser.h (original)
> +++ cfe/trunk/lib/Parse/RAIIObjectsForParser.h Sat Sep 15 15:20:27 2012
> @@ -87,9 +87,8 @@
> Sema::ParsingDeclState State;
> bool Popped;
>
> - // Do not implement.
> - ParsingDeclRAIIObject(const ParsingDeclRAIIObject &other);
> - ParsingDeclRAIIObject &operator=(const ParsingDeclRAIIObject &other);
> + ParsingDeclRAIIObject(const ParsingDeclRAIIObject &)
> LLVM_DELETED_FUNCTION;
> + void operator=(const ParsingDeclRAIIObject &) LLVM_DELETED_FUNCTION;
>
> public:
> enum NoParent_t { NoParent };
> @@ -245,8 +244,9 @@
> /// the way they used to be. This is used to handle __extension__ in
> the
> /// parser.
> class ExtensionRAIIObject {
> - void operator=(const ExtensionRAIIObject &); // DO NOT IMPLEMENT
> - ExtensionRAIIObject(const ExtensionRAIIObject&); // DO NOT IMPLEMENT
> + ExtensionRAIIObject(const ExtensionRAIIObject &)
> LLVM_DELETED_FUNCTION;
> + void operator=(const ExtensionRAIIObject &) LLVM_DELETED_FUNCTION;
> +
> DiagnosticsEngine &Diags;
> public:
> ExtensionRAIIObject(DiagnosticsEngine &diags) : Diags(diags) {
>
> Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderDecl.cpp?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Serialization/ASTReaderDecl.cpp (original)
> +++ cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Sat Sep 15 15:20:27 2012
> @@ -116,7 +116,7 @@
> GlobalDeclID FirstID;
> mutable bool Owning;
>
> - RedeclarableResult &operator=(RedeclarableResult&); // DO NOT
> IMPLEMENT
> + void operator=(RedeclarableResult &) LLVM_DELETED_FUNCTION;
>
> public:
> RedeclarableResult(ASTReader &Reader, GlobalDeclID FirstID)
> @@ -162,7 +162,7 @@
> NamedDecl *Existing;
> mutable bool AddResult;
>
> - FindExistingResult &operator=(FindExistingResult&); // DO NOT
> IMPLEMENT
> + void operator=(FindExistingResult&) LLVM_DELETED_FUNCTION;
>
> public:
> FindExistingResult(ASTReader &Reader)
>
> Modified: cfe/trunk/tools/libclang/IndexingContext.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/IndexingContext.h?rev=163983&r1=163982&r2=163983&view=diff
>
> ==============================================================================
> --- cfe/trunk/tools/libclang/IndexingContext.h (original)
> +++ cfe/trunk/tools/libclang/IndexingContext.h Sat Sep 15 15:20:27 2012
> @@ -251,8 +251,8 @@
> SmallVector<CXIdxAttrInfo *, 2> CXAttrs;
> unsigned ref_cnt;
>
> - AttrListInfo(const AttrListInfo&); // DO NOT IMPLEMENT
> - void operator=(const AttrListInfo&); // DO NOT IMPLEMENT
> + AttrListInfo(const AttrListInfo &) LLVM_DELETED_FUNCTION;
> + void operator=(const AttrListInfo &) LLVM_DELETED_FUNCTION;
> public:
> AttrListInfo(const Decl *D, IndexingContext &IdxCtx);
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120915/333e289e/attachment.html>
More information about the cfe-commits
mailing list