Exemplo n.º 1
0
CodeLocation GeneratableProjectData::location() const
{
    CodeLocation location;
    QMapIterator<QString, ProjectData> it(data);
    while (it.hasNext()) {
        it.next();
        CodeLocation oldLocation = location;
        location = it.value().location();
        if (oldLocation.isValid() && oldLocation != location)
            throw ErrorInfo(QLatin1String("Projects with different code locations "
                                          "per configuration are not compatible with this "
                                          "generator."));
    }
    return location;
}
Exemplo n.º 2
0
bool operator==(const CodeLocation &cl1, const CodeLocation &cl2)
{
    if (cl1.d == cl2.d)
        return true;
    return cl1.filePath() == cl2.filePath() && cl1.line() == cl2.line()
            && cl1.column() == cl2.column();
}
Exemplo n.º 3
0
bool CodeLocation::operator==(const CodeLocation &a) const
  {
  return line() == a.line() &&
    strcmp(file(), a.file()) == 0 &&
    strcmp(function(), a.function()) == 0;
  }
Exemplo n.º 4
0
bool operator<(const CodeLocation &cl1, const CodeLocation &cl2)
{
    return cl1.toString() < cl2.toString();
}
Exemplo n.º 5
0
QDebug operator<<(QDebug debug, const CodeLocation &location)
{
    return debug << location.toString();
}