Alien-SmokeQt
view release on metacpan or search on metacpan
cmake/modules/HandleImportedTargetsInCMakeRequiredLibraries.cmake view on Meta::CPAN
FOREACH(_CURRENT_LIB ${_CCSR_REQ_LIBS})
GET_TARGET_PROPERTY(_importedConfigs ${_CURRENT_LIB} IMPORTED_CONFIGURATIONS)
IF (_importedConfigs)
# Ok, so this is an imported target.
# First we get the imported configurations.
# Then we get the location of the actual library on disk of the first configuration.
# then we'll get its link interface libraries property,
# iterate through it and replace all imported targets we find there
# with there actual location.
# guard against infinite loop: abort after 100 iterations ( 100 is arbitrary chosen)
IF ("${_CCSR_LOOP_COUNTER}" LESS 100)
SET(_CHECK_FOR_IMPORTED_TARGETS TRUE)
# ELSE ("${_CCSR_LOOP_COUNTER}" LESS 1)
# MESSAGE(STATUS "********* aborting loop, counter : ${_CCSR_LOOP_COUNTER}")
ENDIF ("${_CCSR_LOOP_COUNTER}" LESS 100)
LIST(GET _importedConfigs 0 _firstImportedConfig)
GET_TARGET_PROPERTY(_firstImportedLocation ${_CURRENT_LIB} IMPORTED_LOCATION_${_firstImportedConfig})
GET_TARGET_PROPERTY(_linkInterfaceLibs ${_CURRENT_LIB} IMPORTED_LINK_INTERFACE_LIBRARIES_${_firstImportedConfig} )
generator/parser/rpp/pp-location.cpp view on Meta::CPAN
}
LocationTable::AnchorInTable LocationTable::anchorForOffset(std::size_t offset, bool collapseIfMacroExpansion) const
{
// Look nearby for a match first
QMap<std::size_t, Anchor>::ConstIterator constEnd = m_offsetTable.constEnd();
if (m_currentOffset != constEnd) {
std::size_t current = m_currentOffset.key();
bool checkForwards = (current < offset);
// TODO check for optimal number of iterations
for (int i = 0; i < 5; ++i) {
if (checkForwards) {
if (m_currentOffset + 1 == constEnd)
// Special case
goto done;
++m_currentOffset;
if (m_currentOffset != constEnd) {
if (m_currentOffset.key() > offset) {
// Gone forwards too much, but one back is correct
( run in 0.458 second using v1.01-cache-2.11-cpan-96521ef73a4 )