Commit graph

135 commits

Author SHA1 Message Date
Dustin J. Mitchell
0d9e402d3e Add Task.is_empty, needed to identify "dummy" tasks (simple refactor)
getDOM takes an &Task that may be a reference to a dummy, or may be a
real task.  The is_empty method replaces `task.data.size() == 0` as a
way to distinguish the two.
2021-12-16 23:03:44 -05:00
Dustin J. Mitchell
dede40bc4e Replace direct Task.data access with a temp getter (syntactic refactor)
Now this getter, `data_removeme`, can easily be grepped out and
replaced, one usage at a time in small PRs.
2021-12-16 23:03:44 -05:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers 2021-09-05 12:02:07 -04:00
Tomas Babej
91517151ad docs: Add removal comments 2021-08-08 14:27:25 -04:00
Tomas Babej
582bee66e9 DOM: Implement special-cased status handling
This is required for status:pending filters not matching the tasks with
the virutal waiting tag.
2021-08-08 14:27:25 -04:00
Tomas Babej
95b135b59e DOM: Create a copy of Task object only if needed 2021-04-24 10:47:28 -04:00
Tomas Babej
e7487c8a63 performance: Avoid lexing input when not needed in getDOM
Lexing a token can be expensive operation. Perform lexing only if a
UUID/ID reference could have been provided.
2021-04-24 10:47:28 -04:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
Paul Beckingham
3e0a428185 Revert "[clang-tidy] Use .empty instead of comparing size"
This reverts commit a331cceded.
2020-12-05 16:18:37 -05:00
Paul Beckingham
5502729131 Revert "[clang-tidy] Switch C headers to C++ ones"
This reverts commit 0344856d65.
2020-12-05 16:18:37 -05:00
Paul Beckingham
c43a513158 Revert "[clang-tidy] Replace C style casts with C++ ones"
This reverts commit 13e1bf7204.
2020-12-05 16:18:37 -05:00
Rosen Penev
13e1bf7204 [clang-tidy] Replace C style casts with C++ ones
Found with google-readability-casting

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
0344856d65 [clang-tidy] Switch C headers to C++ ones
Found using modernize-return-braced-init-list

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
a331cceded [clang-tidy] Use .empty instead of comparing size
Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Tomas Babej
a09f9d48ab Update copyright to 2020 2020-11-21 12:27:05 -05:00
Tomas Babej
8066e4e6e2 meta: Update copyright year 2019-01-01 08:46:21 -05:00
Kirill Bobyrev
5cdbe6d019
Use nullptr instead lf C-styled NULL 2018-03-07 22:21:28 +03:00
Simon Ruderich
e817dfc800 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17 Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
af8531630d DOM: No more I18N 2018-01-21 22:49:42 -05:00
Paul Beckingham
0de169bb10 Copyright 2018 2017-12-31 19:22:07 -05:00
Paul Beckingham
23138db6c7 DOM: Implemented DOM::Node object 2017-04-30 00:00:14 -04:00
Paul Beckingham
2b71434cf8 DOM: Added dtor that delegate to DOM::Node 2017-04-29 23:57:42 -04:00
Paul Beckingham
f7ab2c4b2d DOM: New reference tw.version. 2017-04-29 11:24:08 -04:00
Paul Beckingham
7e4dd24d86 DOM: Fixed ::count bug 2017-04-29 11:10:57 -04:00
Paul Beckingham
cd87eab6af DOM: Added framework 2017-04-29 10:54:39 -04:00
Paul Beckingham
ae5bc8e239 DOM: Stubbed DOM tree 2017-04-28 12:42:19 -04:00
Paul Beckingham
28030cfc39 DOM: tw.syncneeded should be 0/1, not false/true 2017-02-27 07:52:40 -05:00
Paul Beckingham
06dc1f6c42 DOM: Partial DOM match is no longer an error 2017-02-27 07:46:54 -05:00
Paul Beckingham
a92f596bc0 DOM: New references: tw.syncneeded, tw.program, tw.args, tw.width, tw.height
- And deprecating context.program, context.args, context.width, context.height
2017-02-25 19:21:24 -05:00
Paul Beckingham
545a764450 DOM: Typo 2017-02-20 09:52:41 -05:00
Paul Beckingham
5206b4a84b TW-1827: Extract annotations from a task
- Thanks to Ryan.
2017-01-16 16:00:16 -05:00
Paul Beckingham
4e7576cb79 Merge branch 'recurrence' into 2.6.0 2017-01-07 12:29:11 -05:00
Paul Beckingham
a50e65a134 Copyright update 2017-01-01 12:30:04 -05:00
Paul Beckingham
5193f7d03e Task: Improved method signature 2016-12-31 15:55:06 -05:00
Paul Beckingham
bc58b82e96 DOM: Converted from ISO8601 to Datetime/Duration
- In addition fixed the week number of 2011-09-01 to 35, therefore the
  tests change also.
2016-12-11 21:46:46 -05:00
Paul Beckingham
abd4cfc4ed DOM: Migrated from Nibbler to Lexer 2016-12-11 20:52:54 -05:00
Paul Beckingham
355620c640 libhsared: migrating from local to libshared 2016-12-06 07:20:45 -05:00
Paul Beckingham
95f4989f77 Cleanup: Don't use string literals when character literals are needed 2016-10-14 22:27:34 -04:00
Paul Beckingham
befab82c04 DOM: Eiminated Nibbler 2016-06-25 18:16:34 -04:00
Paul Beckingham
549b970e49 Cleanup: Removed redundant processing of OS name 2016-02-24 23:43:23 -05:00
Paul Beckingham
820cc4b2e5 DOM: Demoted from class to functions
- The DOM object contains no members, and only two (effectively) const methods.
  Demoting DOM to function calls reduces coupling with Context.
2016-02-03 21:54:37 -05:00
Paul Beckingham
83701168a4 DOM: Remove obsolete methods 2016-01-09 22:24:55 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Wilhelm Schuermann
8f8ad813cd Task: Remove std::map inheritance, clean up interface
- Make the Task object's interface more explicit by removing the
  std::map inheritance.
- Using this more explicit interface, remove unneeded ctors in order to
  allow the compiler to "Do The Right Thing"(tm).
  This leads to a performance improvement of 12% in the "add"
  performance test, and 7% for "import".
2015-11-04 20:33:52 +01:00
Paul Beckingham
7d4ccb652e Revert "DOM: Concerted from strtol to std::stoul/stoi"
This reverts commit c903185481.
2015-11-02 18:41:08 -05:00
Paul Beckingham
508559f766 Revert "DOM: Converted from strtol to std::stoi"
This reverts commit 7c5055de7a.
2015-11-02 18:36:19 -05:00
Paul Beckingham
7c5055de7a DOM: Converted from strtol to std::stoi 2015-11-01 22:55:14 -05:00
Paul Beckingham
c903185481 DOM: Concerted from strtol to std::stoul/stoi 2015-11-01 21:42:53 -05:00
Paul Beckingham
5c8b7148b4 Task: Moved include to top of list, per flint++ recommendation 2015-11-01 19:59:10 -05:00