[PATCH] [lld] Add "explicit" to constructors where appropriate.

Rui Ueyama ruiu at google.com
Tue May 7 16:45:57 PDT 2013


Add the explicit keyword to one-parameter
constructors to prevent unintended type conversions.

http://llvm-reviews.chandlerc.com/D765

Files:
  include/lld/Core/Atom.h
  include/lld/Core/Instrumentation.h
  include/lld/Core/Parallel.h
  include/lld/Core/Resolver.h
  include/lld/Core/SharedLibraryFile.h
  include/lld/Core/SymbolTable.h
  include/lld/Driver/LinkerInput.h
  include/lld/Passes/LayoutPass.h
  include/lld/ReaderWriter/LinkerScript.h
  include/lld/ReaderWriter/ReaderLinkerScript.h
  include/lld/ReaderWriter/Simple.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D765.1.patch
Type: text/x-patch
Size: 7755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130507/91391548/attachment.bin>


More information about the llvm-commits mailing list