Cleanup includes

- Remove unused includes
- Use '<..>' style consistently
- Strip any paths from include
- Replace deprecated C++ headers
- Sort includes according to LLVM rules
  https://llvm.org/docs/CodingStandards.html#include-style

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2022-03-31 08:11:58 +02:00
parent 3008e458e9
commit 2535c2c399
88 changed files with 275 additions and 350 deletions

View file

@ -24,19 +24,18 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <csignal>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <cassert>
#include <iostream>
#include <vector>
#include <unistd.h>
#include <timew.h>
#include <format.h>
#include <AtomicFile.h>
#include <FS.h>
#include <cassert>
#include <cerrno>
#include <csignal>
#include <cstdio>
#include <cstring>
#include <format.h>
#include <iostream>
#include <timew.h>
#include <unistd.h>
#include <vector>
struct AtomicFile::impl
{

View file

@ -24,19 +24,18 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <CLI.h>
#include <Color.h>
#include <Pig.h>
#include <shared.h>
#include <format.h>
#include <utf8.h>
#include <sstream>
#include <algorithm>
#include <set>
#include <Duration.h>
#include <timew.h>
#include <DatetimeParser.h>
#include <Duration.h>
#include <Pig.h>
#include <algorithm>
#include <format.h>
#include <set>
#include <shared.h>
#include <sstream>
#include <timew.h>
#include <utf8.h>
////////////////////////////////////////////////////////////////////////////////
A2::A2 (const std::string& raw, Lexer::Type lextype)

View file

@ -27,13 +27,13 @@
#ifndef INCLUDED_CLI
#define INCLUDED_CLI
#include <Lexer.h>
#include <string>
#include <set>
#include <vector>
#include <map>
#include <Duration.h>
#include "Interval.h"
#include <Interval.h>
#include <Lexer.h>
#include <map>
#include <set>
#include <string>
#include <vector>
// Represents a single argument.
class A2

View file

@ -24,17 +24,14 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <iomanip>
#include <iostream>
#include <shared.h>
#include <commands.h>
#include <Duration.h>
#include <Chart.h>
#include <Composite.h>
#include <Chart.h>
#include <format.h>
#include <Duration.h>
#include <cassert>
#include <format.h>
#include <iomanip>
#include <shared.h>
#include <timew.h>
#include <Chart.h>
#include <utf8.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -27,10 +27,10 @@
#ifndef INCLUDED_CHART
#define INCLUDED_CHART
#include <ChartConfig.h>
#include <Composite.h>
#include <Interval.h>
#include <map>
#include "ChartConfig.h"
class Chart
{

View file

@ -27,6 +27,10 @@
#ifndef INCLUDED_CHARTCONFIG
#define INCLUDED_CHARTCONFIG
#include <Color.h>
#include <Datetime.h>
#include <map>
class ChartConfig
{
public:

View file

@ -24,16 +24,15 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cassert>
#include <Database.h>
#include <format.h>
#include <JSON.h>
#include <IntervalFactory.h>
#include <iostream>
#include <iomanip>
#include <shared.h>
#include <timew.h>
#include <AtomicFile.h>
#include <Database.h>
#include <IntervalFactory.h>
#include <JSON.h>
#include <cassert>
#include <format.h>
#include <iomanip>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
Database::iterator::iterator (files_iterator fbegin, files_iterator fend) :

View file

@ -29,12 +29,12 @@
#include <Datafile.h>
#include <Interval.h>
#include <Range.h>
#include <Transaction.h>
#include <vector>
#include <string>
#include <TagInfoDatabase.h>
#include <Journal.h>
#include <Range.h>
#include <TagInfoDatabase.h>
#include <Transaction.h>
#include <string>
#include <vector>
class Database
{

View file

@ -24,16 +24,15 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Datafile.h>
#include <timew.h>
#include <format.h>
#include <algorithm>
#include <sstream>
#include <cassert>
#include <stdlib.h>
#include <AtomicFile.h>
#include <Datafile.h>
#include <IntervalFactory.h>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <format.h>
#include <sstream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
void Datafile::initialize (const std::string& name)

View file

@ -27,11 +27,11 @@
#ifndef INCLUDED_DATAFILE
#define INCLUDED_DATAFILE
#include <FS.h>
#include <Interval.h>
#include <Range.h>
#include <FS.h>
#include <vector>
#include <string>
#include <vector>
class Datafile
{

View file

@ -24,19 +24,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <DatetimeParser.h>
#include <Duration.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <cassert>
#include <stdlib.h>
#include <shared.h>
#include <format.h>
#include <iostream>
#include <unicode.h>
#include <utf8.h>
#include <src/libshared/src/Duration.h>
static std::vector <std::string> dayNames {
"sunday",

View file

@ -27,10 +27,10 @@
#ifndef INCLUDED_DATETIMEPARSER
#define INCLUDED_DATETIMEPARSER
#include <string>
#include <ctime>
#include <Pig.h>
#include <Range.h>
#include <ctime>
#include <string>
class DatetimeParser
{

View file

@ -24,13 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Exclusion.h>
#include <Datetime.h>
#include <Exclusion.h>
#include <Pig.h>
#include <shared.h>
#include <format.h>
#include <algorithm>
#include <format.h>
#include <shared.h>
////////////////////////////////////////////////////////////////////////////////
// An exclusion represents untrackable time such as holidays, weekends, evenings

View file

@ -29,8 +29,8 @@
#include <Interval.h>
#include <Range.h>
#include <vector>
#include <string>
#include <vector>
class Exclusion
{

View file

@ -24,16 +24,14 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Extensions.h>
#include <FS.h>
#include <Timer.h>
#include <shared.h>
#include <timew.h>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <shared.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
void Extensions::initialize (const std::string& location)

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_EXTENSIONS
#define INCLUDED_EXTENSIONS
#include <vector>
#include <string>
#include <vector>
class Extensions
{

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Interval.h>
#include <timew.h>
#include <format.h>
#include <Lexer.h>
#include <sstream>
#include <JSON.h>
#include <Interval.h>
#include <Lexer.h>
#include <algorithm>
#include <sstream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
bool Interval::operator== (const Interval& other) const

View file

@ -24,11 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <format.h>
#include <Lexer.h>
#include <IntervalFactory.h>
#include <JSON.h>
#include <shared.h>
#include <Lexer.h>
#include <format.h>
static std::vector <std::string> tokenizeSerialization (const std::string& line)
{

View file

@ -27,10 +27,10 @@
#ifndef INCLUDED_INTERVALFILTERALLWITHIDS
#define INCLUDED_INTERVALFILTERALLWITHIDS
#include <IntervalFilter.h>
#include <string>
#include <set>
#include <Interval.h>
#include <IntervalFilter.h>
#include <set>
#include <string>
class IntervalFilterAllWithIds : public IntervalFilter
{

View file

@ -24,8 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <IntervalFilterAllWithTags.h>
#include <Interval.h>
#include <IntervalFilterAllWithTags.h>
IntervalFilterAllWithTags::IntervalFilterAllWithTags (std::set <std::string> tags): _tags (std::move(tags))
{}

View file

@ -27,10 +27,10 @@
#ifndef INCLUDED_INTERVALFILTERALLWITHTAGSET
#define INCLUDED_INTERVALFILTERALLWITHTAGSET
#include <IntervalFilter.h>
#include <string>
#include <set>
#include <Interval.h>
#include <IntervalFilter.h>
#include <set>
#include <string>
class IntervalFilterAllWithTags : public IntervalFilter
{

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_INTERVALFILTERANDGROUP
#define INCLUDED_INTERVALFILTERANDGROUP
#include <memory>
#include <IntervalFilter.h>
#include <memory>
class IntervalFilterAndGroup : public IntervalFilter
{

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_INTERVALFILTERFIRSTOF
#define INCLUDED_INTERVALFILTERFIRSTOF
#include <memory>
#include <IntervalFilter.h>
#include <memory>
class IntervalFilterFirstOf : public IntervalFilter
{

View file

@ -24,12 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cassert>
#include <AtomicFile.h>
#include <format.h>
#include <Journal.h>
#include <TransactionsFactory.h>
#include <cassert>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////

View file

@ -28,10 +28,10 @@
#define INCLUDED_JOURNAL
#include <vector>
#include <string>
#include <memory>
#include <Transaction.h>
#include <memory>
#include <string>
#include <vector>
class Journal
{

View file

@ -25,8 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <Range.h>
#include <sstream>
#include <cassert>
#include <sstream>
////////////////////////////////////////////////////////////////////////////////
// A Range consists of a start time and optional end time. A missing end

View file

@ -24,18 +24,17 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Rules.h>
#include <AtomicFile.h>
#include <FS.h>
#include <shared.h>
#include <format.h>
#include <sstream>
#include <tuple>
#include <JSON.h>
#include <Rules.h>
#include <cassert>
#include <cerrno>
#include <inttypes.h>
#include <AtomicFile.h>
#include <JSON.h>
#include <cinttypes>
#include <format.h>
#include <shared.h>
#include <sstream>
#include <tuple>
////////////////////////////////////////////////////////////////////////////////
Rules::Rules ()

View file

@ -27,12 +27,12 @@
#ifndef INCLUDED_RULES
#define INCLUDED_RULES
#include <Lexer.h>
#include <map>
#include <vector>
#include <string>
#include <Database.h>
#include <Journal.h>
#include <Lexer.h>
#include <map>
#include <string>
#include <vector>
class Rules
{

View file

@ -25,9 +25,9 @@
////////////////////////////////////////////////////////////////////////////////
#include <JSON.h>
#include <TagInfo.h>
#include <TagInfoDatabase.h>
#include <format.h>
#include <TagInfo.h>
#include <timew.h>
///////////////////////////////////////////////////////////////////////////////

View file

@ -27,10 +27,10 @@
#ifndef INCLUDED_TAGINFODATABASE
#define INCLUDED_TAGINFODATABASE
#include <TagInfo.h>
#include <map>
#include <set>
#include <string>
#include <map>
#include <TagInfo.h>
class TagInfoDatabase
{

View file

@ -24,8 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <vector>
#include <TransactionsFactory.h>
#include <vector>
void TransactionsFactory::parseLine (const std::string& line)
{

View file

@ -27,8 +27,8 @@
#ifndef INCLUDED_TRANSACTIONSFACTORY
#define INCLUDED_TRANSACTIONSFACTORY
#include <string>
#include <Transaction.h>
#include <string>
class TransactionsFactory
{

View file

@ -24,15 +24,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterFirstOf.h>
#include <commands.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterFirstOf.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdAnnotate (

View file

@ -25,8 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdCancel (

View file

@ -24,19 +24,17 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <Duration.h>
#include <Range.h>
#include <Chart.h>
#include <ChartConfig.h>
#include <commands.h>
#include <timew.h>
#include <shared.h>
#include <format.h>
#include <iostream>
#include <iomanip>
#include <Duration.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAndGroup.h>
#include <Range.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
int renderChart (const CLI&, const std::string&, Interval&, Rules&, Database&);

View file

@ -25,8 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <JSON.h>
#include <format.h>
#include <commands.h>
#include <format.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////

View file

@ -24,15 +24,15 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <cassert>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterFirstOf.h>
#include <IntervalFilterAllInRange.h>
#include <cassert>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdContinue (

View file

@ -24,11 +24,11 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterFirstOf.h>
#include <commands.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
// Returns 0 if tracking is active, 1 if not.

View file

@ -24,11 +24,11 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <timew.h>
#include <IntervalFilterAllWithIds.h>
#include <Journal.h>
#include <format.h>
#include <iostream>
#include <src/Journal.h>
#include <IntervalFilterAllWithIds.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdDelete (

View file

@ -26,10 +26,10 @@
#include <cmake.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <shared.h>
#include <paths.h>
#include <shared.h>
#include <timew.h>
#ifdef HAVE_COMMIT
#include <commit.h>

View file

@ -24,13 +24,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAndGroup.h>
#include <commands.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdExport (

View file

@ -24,8 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <Table.h>
#include <commands.h>
#include <iostream>
#include <paths.h>

View file

@ -25,11 +25,11 @@
////////////////////////////////////////////////////////////////////////////////
#include <Duration.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <IntervalFilterAllInRange.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdFill (

View file

@ -24,12 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <Table.h>
#include <Duration.h>
#include <format.h>
#include <Table.h>
#include <commands.h>
#include <timew.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdGaps (

View file

@ -25,10 +25,10 @@
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <shared.h>
#include <format.h>
#include <iostream>
#include <shared.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
// Іdentify DOM references in cli, provide space-separated results.

View file

@ -24,15 +24,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <sys/types.h>
#include <sys/wait.h>
#include <commands.h>
#include <algorithm>
#include <iostream>
#include <FS.h>
#include <shared.h>
#include <additional-help.h>
#include <algorithm>
#include <commands.h>
#include <iostream>
#include <shared.h>
#include <sys/wait.h>
////////////////////////////////////////////////////////////////////////////////
int CmdHelpUsage (const Extensions& extensions)

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Duration.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdJoin (

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Duration.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdLengthen (

View file

@ -24,12 +24,11 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cassert>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <IntervalFilterAllWithIds.h>
#include <cassert>
#include <commands.h>
#include <format.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdModify (

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Datetime.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdMove (

View file

@ -24,17 +24,16 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <commands.h>
#include <shared.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <sstream>
#include <FS.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAndGroup.h>
#include <cmake.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <shared.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
// Given a partial match for an extension script name, find the full patch of

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Duration.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdResize (

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Duration.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdShorten (

View file

@ -24,11 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <shared.h>
#include <timew.h>
#include <algorithm>
#include <iostream>
#include <shared.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdShow (Rules& rules)

View file

@ -24,14 +24,12 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Duration.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdSplit (

View file

@ -25,8 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdStart (

View file

@ -24,10 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <format.h>
#include <iostream>
#include <timew.h>
template <class T> T setIntersect (
const T& left, const T& right)

View file

@ -24,16 +24,15 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <Table.h>
#include <Duration.h>
#include <shared.h>
#include <format.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <IntervalFilterAndGroup.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAndGroup.h>
#include <Table.h>
#include <commands.h>
#include <format.h>
#include <iostream>
#include <timew.h>
#include <utf8.h>
// Implemented in CmdChart.cpp.

View file

@ -24,16 +24,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <cassert>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterFirstOf.h>
#include <commands.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterFirstOf.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdTag (

View file

@ -24,16 +24,15 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <commands.h>
#include <timew.h>
#include <Table.h>
#include <Color.h>
#include <set>
#include <iostream>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAndGroup.h>
#include <Table.h>
#include <commands.h>
#include <iostream>
#include <set>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdTags (

View file

@ -25,8 +25,8 @@
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdTrack (

View file

@ -24,11 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <format.h>
#include <IntervalFactory.h>
#include <commands.h>
#include <format.h>
#include <iostream>
static void undoIntervalAction(UndoAction& action, Database& database)
{

View file

@ -24,15 +24,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterFirstOf.h>
#include <commands.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <stdlib.h>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterFirstOf.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int CmdUntag (

View file

@ -28,10 +28,10 @@
#define INCLUDED_COMMANDS
#include <CLI.h>
#include <Rules.h>
#include <Database.h>
#include <Extensions.h>
#include <Journal.h>
#include <Rules.h>
int CmdAnnotate (const CLI&, Rules&, Database&, Journal& );
int CmdCancel ( Rules&, Database&, Journal& );

View file

@ -24,17 +24,14 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <algorithm>
#include <cmake.h>
#include <shared.h>
#include <format.h>
#include <Datetime.h>
#include <Duration.h>
#include <timew.h>
#include <algorithm>
#include <iostream>
#include <IntervalFactory.h>
#include <IntervalFilter.h>
#include <algorithm>
#include <format.h>
#include <shared.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
// Read rules and extract all holiday definitions. Create a Range for each

View file

@ -24,17 +24,16 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <timew.h>
#include <Pig.h>
#include <Duration.h>
#include <format.h>
#include <vector>
#include <iostream>
#include <IntervalFilterAllInRange.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterAndGroup.h>
#include <IntervalFilterFirstOf.h>
#include <Pig.h>
#include <format.h>
#include <iostream>
#include <timew.h>
#include <vector>
////////////////////////////////////////////////////////////////////////////////
bool domGet (

View file

@ -24,17 +24,14 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <timew.h>
#include <shared.h>
#include <format.h>
#include <Datetime.h>
#include <Duration.h>
#include <IntervalFactory.h>
#include <sstream>
#include <format.h>
#include <iomanip>
#include <iostream>
#include <map>
#include <sstream>
#include <timew.h>
#include <vector>
////////////////////////////////////////////////////////////////////////////////

View file

@ -25,14 +25,13 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <timew.h>
#include <shared.h>
#include <format.h>
#include <commands.h>
#include <cstring>
#include <unistd.h>
#include <format.h>
#include <iostream>
#include <paths.h>
#include <shared.h>
#include <timew.h>
#include <unistd.h>
////////////////////////////////////////////////////////////////////////////////
bool lightweightVersionCheck (int argc, const char** argv)

View file

@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <Lexer.h>
#include <iostream>
int main (int argc, char** argv)
{

View file

@ -25,9 +25,9 @@
////////////////////////////////////////////////////////////////////////////////
#include <Color.h>
#include <timew.h>
#include <iostream>
#include <sstream>
#include <timew.h>
static bool debugMode = false;
static std::string debugIndicator = ">>";

View file

@ -26,10 +26,10 @@
#ifndef INCLUDED_PATH_RESOLVER
#define INCLUDED_PATH_RESOLVER
#include <string>
#include <Rules.h>
#include <CLI.h>
#include <Rules.h>
#include <Rules.h>
#include <string>
namespace paths {
void initializeDirs (const CLI&, Rules&);

View file

@ -24,20 +24,18 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <AtomicFile.h>
#include <CLI.h>
#include <Database.h>
#include <Rules.h>
#include <Extensions.h>
#include <Datetime.h>
#include <Extensions.h>
#include <Rules.h>
#include <Timer.h>
#include <shared.h>
#include <commands.h>
#include <timew.h>
#include <iostream>
#include <iomanip>
#include <iostream>
#include <new>
#include <shared.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int main (int argc, const char** argv)

View file

@ -28,14 +28,14 @@
#define INCLUDED_TIMEW
#include <CLI.h>
#include <Color.h>
#include <Database.h>
#include <Rules.h>
#include <Exclusion.h>
#include <Extensions.h>
#include <Interval.h>
#include <Exclusion.h>
#include <Palette.h>
#include <Color.h>
#include <IntervalFilter.h>
#include <Palette.h>
#include <Rules.h>
// data.cpp
std::vector <Range> getHolidays (const Rules&);

View file

@ -24,9 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <timew.h>
#include <string>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
// Escape all 'c' --> '\c'.

View file

@ -24,11 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <format.h>
#include <timew.h>
#include <iostream>
#include <IntervalFilterAllInRange.h>
#include <format.h>
#include <iostream>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
// :fill

View file

@ -24,20 +24,15 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cassert>
#include <sstream>
#include <memory>
#include <string>
#include <unistd.h>
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <cmake.h>
#include <timew.h>
#include <test.h>
#include <AtomicFile.h>
#include <FS.h>
#include <TempDir.h>
#include <cassert>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <test.h>
#ifdef FIU_ENABLE

View file

@ -24,11 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <test.h>
#include <Datafile.h>
#include <Interval.h>
#include <TempDir.h>
#include <test.h>
int main ()
{

View file

@ -24,12 +24,11 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Datetime.h>
#include <test.h>
#include <DatetimeParser.h>
#include <ctime>
#include <iostream>
#include <time.h>
#include <src/DatetimeParser.h>
#include <test.h>
////////////////////////////////////////////////////////////////////////////////
void testParseOpenRange (

View file

@ -24,9 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <test.h>
#include <TagInfoDatabase.h>
#include <test.h>
////////////////////////////////////////////////////////////////////////////////
int main (int, char**)

View file

@ -27,13 +27,11 @@
#ifndef TIMEW_TEMP_DIR
#define TIMEW_TEMP_DIR
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <FS.h>
#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <vector>
class TempDir
{

View file

@ -24,9 +24,9 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <timew.h>
#include <IntervalFactory.h>
#include <test.h>
#include <src/IntervalFactory.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
void test_flatten (

View file

@ -24,12 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Exclusion.h>
#include <Range.h>
#include <vector>
#include <iostream>
#include <test.h>
#include <vector>
////////////////////////////////////////////////////////////////////////////////
int main (int, char**)

View file

@ -24,9 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <timew.h>
#include <test.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int main (int, char**)

View file

@ -24,7 +24,6 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Interval.h>
#include <IntervalFactory.h>
#include <test.h>

View file

@ -24,10 +24,10 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Range.h>
#include <test.h>
#include <cmake.h>
#include <iostream>
#include <test.h>
////////////////////////////////////////////////////////////////////////////////
int main (int, char**)

View file

@ -24,7 +24,6 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Rules.h>
#include <test.h>

View file

@ -24,14 +24,14 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <test.h>
#include <unistd.h>
///////////////////////////////////////////////////////////////////////////////
UnitTest::UnitTest ()

View file

@ -24,9 +24,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <timew.h>
#include <test.h>
#include <timew.h>
////////////////////////////////////////////////////////////////////////////////
int main (int, char**)