Skip to content

Commit

Permalink
s/first/front/g
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Jun 24, 2021
1 parent 294c992 commit fdf4bf5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ClangIndexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ bool ClangIndexer::superclassTemplateMemberFunctionUgleHack(const CXCursor &curs
// ### not sure this is correct with line/col
return handleReference(cursor, kind,
Location(location.fileId(), location.line(), location.column() + 1),
alternatives.first(), cursorPtr);
alternatives.front(), cursorPtr);
break;
case 0:
break;
Expand Down
4 changes: 2 additions & 2 deletions src/CompletionThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void CompletionThread::run()
if (dump) {
std::unique_lock<std::mutex> lock(dump->mutex);
Log out(&dump->string);
for (SourceFile *cache = mCacheList.first(); cache; cache = cache->next) {
for (SourceFile *cache = mCacheList.front(); cache; cache = cache->next) {
out << cache->source
<< "\nparseTime:" << cache->parseTime
<< "\nreparseTime:" << cache->reparseTime
Expand Down Expand Up @@ -726,7 +726,7 @@ String CompletionThread::Request::toString() const
Source CompletionThread::findSource(const Set<uint32_t> &deps) const
{
std::unique_lock<std::mutex> lock(mMutex);
for (SourceFile *sourceFile = mCacheList.first(); sourceFile; sourceFile = sourceFile->next) {
for (SourceFile *sourceFile = mCacheList.front(); sourceFile; sourceFile = sourceFile->next) {
if (deps.contains(sourceFile->source.fileId)) {
return sourceFile->source;
}
Expand Down
4 changes: 2 additions & 2 deletions src/JobScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void JobScheduler::add(const std::shared_ptr<IndexerJob> &job)
std::shared_ptr<Node> node(new Node);
node->job = job;
// error() << job->priority << job->sourceFile << mProcrastination;
if (mPendingJobs.empty() || job->priority() > mPendingJobs.first()->job->priority()) {
if (mPendingJobs.empty() || job->priority() > mPendingJobs.front()->job->priority()) {
mPendingJobs.prepend(node);
} else {
std::shared_ptr<Node> after = mPendingJobs.last();
Expand Down Expand Up @@ -146,7 +146,7 @@ void JobScheduler::startJobs()
nodes[i]->process->kill();
}
}
std::shared_ptr<Node> node = mPendingJobs.first();
std::shared_ptr<Node> node = mPendingJobs.front();
while (node && (slots || daemonSlots)) {
const Server::ActiveBufferType type = Server::instance()->activeBufferType(node->job->sourceFileId());
if (daemonSlots && type == Server::Active) {
Expand Down
4 changes: 2 additions & 2 deletions src/QueryJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ QueryJob::QueryJob(const std::shared_ptr<QueryMessage> &query,
setJobFlag(QuietJob);
const List<QueryMessage::PathFilter> &pathFilters = query->pathFilters();
if (!pathFilters.empty()) {
if (pathFilters.size() == 1 && pathFilters.first().mode == QueryMessage::PathFilter::Self) {
mFileFilter = Location::fileId(pathFilters.first().pattern);
if (pathFilters.size() == 1 && pathFilters.front().mode == QueryMessage::PathFilter::Self) {
mFileFilter = Location::fileId(pathFilters.front().pattern);
}
if (!mFileFilter) {
for (const QueryMessage::PathFilter &filter : pathFilters) {
Expand Down
2 changes: 1 addition & 1 deletion src/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ SourceList Source::parse(const String &cmdLine,
SourceList ret;
if (!inputs.empty()) {
if (!buildRootId) {
buildRoot = RTags::findProjectRoot(inputs.first().realPath, RTags::BuildRoot, cache);
buildRoot = RTags::findProjectRoot(inputs.front().realPath, RTags::BuildRoot, cache);
if (buildRoot.isDir())
buildRootId = Location::insertFile(buildRoot);
}
Expand Down

0 comments on commit fdf4bf5

Please sign in to comment.