add blank line between cmake.h header include to prevent sorting

* add required comment in the line below cmake.h include header
This commit is contained in:
Felix Schurk 2024-07-24 18:20:43 +02:00
parent dfc3566796
commit 954d3f5058
138 changed files with 288 additions and 12 deletions

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CLI2.h>
#include <sstream>
#include <algorithm>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Context.h>
#include <iostream>
#include <fstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <DOM.h>
#include <sstream>
#include <map>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Eval.h>
#include <DOM.h>
#include <map>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Filter.h>
#include <algorithm>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Hooks.h>
#include <algorithm>
// If <iostream> is included, put it after <stdio.h>, because it includes

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Lexer.h>
#include <algorithm>
#include <ctype.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <TDB2.h>
#include <iostream>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Task.h>
#include <sstream>
#include <stdlib.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <sstream>
#include <algorithm>
#include <stdio.h>

View file

@ -26,6 +26,8 @@
#include <Version.h>
#include <cmake.h>
// cmake.h include header must come first
#include <iostream>
#include <sstream>
#include <string>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ViewTask.h>
#include <numeric>
#include <Context.h>
@ -188,7 +190,7 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
// Calculate final column widths.
int overage = _width - sum_minimal - all_extra;
Context::getContext ().debug (format ("ViewTask::render min={1} ideal={2} overage={3} width={4}",
Context::getContext ().debug (format ("ViewTask::render min={1} ideal={2} overage={3} width={4}",
sum_minimal + all_extra,
sum_ideal + all_extra,
overage,

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <iostream>
#include <string>
#include <stdlib.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColDepends.h>
#include <algorithm>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColDescription.h>
#include <stdlib.h>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColDue.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColEnd.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColEntry.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColID.h>
#include <math.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColIMask.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColLast.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColMask.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColModified.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColParent.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColProject.h>
#include <Context.h>
#include <Eval.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColRType.h>
#include <Context.h>
#include <shared.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColRecur.h>
#include <Context.h>
#include <Duration.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColScheduled.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColStart.h>
#include <Context.h>
#include <utf8.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColStatus.h>
#include <format.h>
#include <utf8.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColTags.h>
#include <algorithm>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColTemplate.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColTypeDate.h>
#include <Context.h>
#include <Datetime.h>
@ -43,7 +45,7 @@ ColumnTypeDate::ColumnTypeDate ()
_label = "";
_styles = {"formatted",
"julian",
"epoch",
"epoch",
"iso",
"age",
"relative",

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColTypeDuration.h>
#include <Context.h>
#include <Eval.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColTypeNumeric.h>
#include <Context.h>
#include <Eval.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColTypeString.h>
#include <Context.h>
#include <Eval.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColUDA.h>
#include <Context.h>
#include <Datetime.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColUUID.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColUntil.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColUrgency.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <ColWait.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <Column.h>
#include <algorithm>
#include <set>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdAdd.h>
#include <Context.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdAliases.h>
#include <Context.h>
#include <Command.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdAnnotate.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdAppend.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdAttributes.h>
#include <sstream>
#include <algorithm>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdBurndown.h>
#include <sstream>
#include <map>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdCalendar.h>
#include <sstream>
#include <iomanip>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdColor.h>
#include <sstream>
#include <Table.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdColumns.h>
#include <algorithm>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdCommands.h>
#include <sstream>
#include <algorithm>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdConfig.h>
#include <sstream>
#include <algorithm>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdContext.h>
#include <CmdConfig.h>
#include <Table.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdCount.h>
#include <Filter.h>
#include <main.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdCustom.h>
#include <sstream>
#include <map>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdDelete.h>
#include <iostream>
#include <Context.h>
@ -72,7 +74,7 @@ int CmdDelete::execute (std::string&)
// Accumulated project change notifications.
std::map <std::string, std::string> projectChanges;
if(filtered.size() > 1) {
if(filtered.size() > 1) {
feedback_affected("This command will alter {1} tasks.", filtered.size());
}
for (auto& task : filtered)

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdDenotate.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdDiagnostics.h>
#include <iomanip>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdDone.h>
#include <iostream>
#include <Context.h>
@ -129,9 +131,9 @@ int CmdDone::execute (std::string&)
rc = 1;
}
}
nag (modified);
// Now list the project changes.
for (const auto& change : projectChanges)
if (change.first != "")

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdDuplicate.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdEdit.h>
#include <iostream>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdExec.h>
#include <stdlib.h>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdExport.h>
#include <Context.h>
#include <Filter.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdGet.h>
#include <Variant.h>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdHelp.h>
#include <algorithm>
#include <Table.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdHistory.h>
#include <sstream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdIDs.h>
#include <sstream>
#include <algorithm>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdImport.h>
#include <CmdModify.h>
#include <iostream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdInfo.h>
#include <sstream>
#include <stdlib.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdLog.h>
#include <Context.h>
#include <format.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdLogo.h>
#include <Context.h>
#include <util.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdModify.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdNews.h>
#include <iostream>
#include <cmath>
@ -39,7 +41,7 @@
#include <main.h>
/* Adding a new version:
*
*
* - Add a new `versionX_Y_Z` method to `NewsItem`, and add news items for the new
* release.
* - Call the new method in `NewsItem.all()`. Calls should be in version order.

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdPrepend.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdProjects.h>
#include <algorithm>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdPurge.h>
#include <Context.h>
#include <Filter.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdReports.h>
#include <sstream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdShow.h>
#include <vector>
#include <sstream>
@ -284,7 +286,7 @@ int CmdShow::execute (std::string& output)
std::string section;
// Look for the first plausible argument which could be a pattern
// Look for the first plausible argument which could be a pattern
if (words.size ())
section = words[0];

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdStart.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdStats.h>
#include <sstream>
#include <iomanip>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdStop.h>
#include <iostream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdSummary.h>
#include <algorithm>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdSync.h>
#include <sstream>
#include <inttypes.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdTags.h>
#include <sstream>
#include <vector>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdTimesheet.h>
#include <algorithm>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdUDAs.h>
#include <Table.h>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdUndo.h>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdUnique.h>
#include <string>
#include <set>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdUrgency.h>
#include <sstream>
#include <stdlib.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <CmdVersion.h>
#include <sstream>
#include <stdlib.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <iostream>
#include <vector>
#include <stdlib.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <algorithm>
#include <iostream>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <iostream>
#include <algorithm>
#include <sstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <cstddef>
#include <sstream>
#include <Context.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <iostream>
#include <new>
#include <cstring>

View file

@ -26,6 +26,8 @@
#include <algorithm>
#include <cmake.h>
// cmake.h include header must come first
#include <Context.h>
#include <iterator>
#include <unordered_set>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <iostream>
#include <iomanip>
#include <fstream>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <stdlib.h>
#include <Context.h>
#include <Datetime.h>

View file

@ -25,6 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
// cmake.h include header must come first
#include <algorithm>
#include <vector>
#include <list>
@ -76,12 +78,12 @@ void sort_projects (
{
parent_pos = std::find_if (sorted.begin (), sorted.end (),
[&parent](const std::pair <std::string, int>& item) { return item.first == parent; });
// if parent does not exist yet: insert into sorted view
if (parent_pos == sorted.end ())
sorted.emplace_back (parent, 1);
}
// insert new element below latest parent
sorted.insert ((parent_pos == sorted.end ()) ? parent_pos : ++parent_pos, project);
}
@ -100,7 +102,7 @@ void sort_projects (
std::map <std::string, int> allProjectsInt;
for (auto& p : allProjects)
allProjectsInt[p.first] = (int) p.second;
sort_projects (sorted, allProjectsInt);
}

Some files were not shown because too many files have changed in this diff Show more