Skip to content

Commit

Permalink
add cmd argument for source code search path
Browse files Browse the repository at this point in the history
  • Loading branch information
lievenhey committed Jul 25, 2023
1 parent 23adec4 commit 0bfe7ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ int main(int argc, char** argv)

QCommandLineOption sourcePath(
QStringLiteral("sourcePaths"),
QCoreApplication::translate("main", "Colon separated list of extra paths to the source code."),
QCoreApplication::translate("main", "Colon separated list of search paths for the source code."),
QStringLiteral("paths"));
parser.addOption(sourcePath);

Expand Down
10 changes: 1 addition & 9 deletions src/models/sourcecodemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include "highlighter.hpp"
#include "search.h"
#include <climits>

SourceCodeModel::SourceCodeModel(KSyntaxHighlighting::Repository* repository, QObject* parent)
: QAbstractTableModel(parent)
Expand All @@ -36,7 +35,7 @@ void SourceCodeModel::clear()
m_document->clear();
endResetModel();
}
#include <QDebug>

void SourceCodeModel::setDisassembly(const DisassemblyOutput& disassemblyOutput,
const Data::CallerCalleeResults& results)
{
Expand Down Expand Up @@ -103,13 +102,6 @@ void SourceCodeModel::setDisassembly(const DisassemblyOutput& disassemblyOutput,
m_validLineNumbers.insert(line.fileLine.line);
}

if (minLineNumber == INT_MAX && maxLineNumber == 0) {
qWarning() << "Something went terribly wrong";
return;
}

qDebug() << disassemblyOutput.mainSourceFileName << minLineNumber << maxLineNumber;

Q_ASSERT(minLineNumber > 0);
Q_ASSERT(minLineNumber < maxLineNumber);

Expand Down

0 comments on commit 0bfe7ad

Please sign in to comment.