-
- Downloads
cmLinkItem: Convert to a "sum type" over a string and target pointer
Avoid exposing the item name implicitly as std::string. When the item is a target, avoid storing a second copy of its name. Most link item construction is paired with calls to `FindTargetToLink` to get the possible target pointer. Rename these methods to `ResolveLinkItem` and refactor them to construct the entire item.
Showing
- Source/CMakeLists.txt 1 addition, 0 deletionsSource/CMakeLists.txt
- Source/cmComputeLinkDepends.cxx 16 additions, 14 deletionsSource/cmComputeLinkDepends.cxx
- Source/cmComputeLinkDepends.h 1 addition, 2 deletionsSource/cmComputeLinkDepends.h
- Source/cmComputeTargetDepends.cxx 4 additions, 4 deletionsSource/cmComputeTargetDepends.cxx
- Source/cmExportFileGenerator.cxx 11 additions, 1 deletionSource/cmExportFileGenerator.cxx
- Source/cmGeneratorTarget.cxx 25 additions, 19 deletionsSource/cmGeneratorTarget.cxx
- Source/cmGeneratorTarget.h 1 addition, 1 deletionSource/cmGeneratorTarget.h
- Source/cmLinkItem.cxx 72 additions, 0 deletionsSource/cmLinkItem.cxx
- Source/cmLinkItem.h 13 additions, 25 deletionsSource/cmLinkItem.h
- bootstrap 1 addition, 0 deletionsbootstrap
Loading
Please register or sign in to comment