Add the 'explicit' keyword to several constructors that accept one

argument that don't appear intended as implicit-conversion operators.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2007-03-23 18:44:11 +00:00
parent b819a2b5fe
commit 423c2260f9
17 changed files with 41 additions and 36 deletions

View File

@@ -70,8 +70,8 @@ public:
/// is automatically inserted at either the end of the function (if
/// InsertBefore is null), or before the specified basic block.
///
BasicBlock(const std::string &Name = "", Function *Parent = 0,
BasicBlock *InsertBefore = 0);
explicit BasicBlock(const std::string &Name = "", Function *Parent = 0,
BasicBlock *InsertBefore = 0);
~BasicBlock();
/// getParent - Return the enclosing method, or null if none