summaryrefslogtreecommitdiff
path: root/sc/inc/formulalogger.hxx
AgeCommit message (Collapse)AuthorFilesLines
2019-08-23Mark move ctors/assignments noexceptMike Kaganski1-1/+1
This should enable using move semantics where possible e.g. in standard containers. According to https://en.cppreference.com/w/cpp/language/move_constructor: To make strong exception guarantee possible, user-defined move constructors should not throw exceptions. For example, std::vector relies on std::move_if_noexcept to choose between move and copy when the elements need to be relocated. Change-Id: I6e1e1cdd5cd430b139ffa2fa7031fb0bb625decb Reviewed-on: https://gerrit.libreoffice.org/77957 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-10-17Remove unused FormulaLogger::maMessageStephan Bergmann1-1/+0
Change-Id: Ie1bc5cf4db6b46160fd950f471c9baf9ec51ebf7 Reviewed-on: https://gerrit.libreoffice.org/61873 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-10-15loplugin:constfields in scNoel Grandin1-1/+1
Change-Id: If326175d571d15752efd1b63df45b2bc785f7541 Reviewed-on: https://gerrit.libreoffice.org/61653 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-15Typo: s/threashold/thresholdTor Lillqvist1-2/+2
Change-Id: I42af7f4c27084e41c63b8d3c8c3111dd814eb74d
2017-05-09Avoid adding unnecessary overhead to formula calculation.Kohei Yoshida1-0/+7
Instead, hide the overhead within the logger code which is disabled in the release build. Change-Id: Ie80c2a1725476d96d3e5551cf0303ecb5d73b47e Reviewed-on: https://gerrit.libreoffice.org/37409 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2017-03-28sc: include cleanup for --enable_formula_loggerJochen Nitschke1-1/+4
don't include osl/file.hxx everywhere it's only needed for --enable_formula_logger builds Change-Id: I6ba30351b5a7afe975ea859e838930f9d1454c8c Reviewed-on: https://gerrit.libreoffice.org/35766 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-11-10Avoid writing to the log for the same group twice.Kohei Yoshida1-1/+4
This can happen when the group calculation is disabled and falls back to non-group calculations. And we only care about the first entry in case of non-group calculation of grouped cells. Change-Id: I545980acf8e35b4d0504aa2a77f86bdc85799e29 Reviewed-on: https://gerrit.libreoffice.org/30738 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2016-11-07Fix typos (also in the code)Andrea Gelmini1-1/+1
Change-Id: I45d45513b102f4fdcb55e8de20b95b37f66ea463 Reviewed-on: https://gerrit.libreoffice.org/30658 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-11-05Pass the current cell position to conditionally display sheet name.Kohei Yoshida1-6/+13
Change-Id: I28dba90500af7c11db569fded28ce571a1ec9089
2016-11-05Log cell range references.Kohei Yoshida1-3/+26
Change-Id: Id6402a35ced37aff7215a46d23b4103a64bf669b
2016-11-05Log single cell references.Kohei Yoshida1-1/+13
Change-Id: If711c44a3be7ae02d1354bb36ed7db6b5a86ef6b
2016-11-05Dump the single cell vector reference info to the log.Kohei Yoshida1-0/+11
Change-Id: If0ee6dca6642063501c728bec3b4e5d7b6401442
2016-10-26Better way to silence loplugin:staticmethodsStephan Bergmann1-5/+3
...in this !ENABLE_FORMULA_LOGGER dummy implementation Change-Id: Ifaf3356ada68d70164644f89fc6dc6d66f22024b
2016-10-25Keep loplugin:staticmethods happy.Kohei Yoshida1-2/+5
Change-Id: I45b576a4401d51d204007a8dde3b24617b5a17e9
2016-10-25Add configure option --enable-formula-logger to conditionalize it.Kohei Yoshida1-0/+33
Change-Id: I1badbcfa259b22d742e5241bd817ea44769a771e
2016-10-25Ensure that GroupScope can only be instantiated by FormulaLogger.Kohei Yoshida1-2/+17
And also annotate the class a bit. Change-Id: I7544e49991778be36a9214851f3d7add4bfef626
2016-10-25LIBO_FORMULA_LOG_FILE env var to specify the log file location.Kohei Yoshida1-0/+2
In theory you can either use file:///foo/bar or /foo/bar style of file path. And also make sure that we don't crash in case a file is not specified or the file path is invalid. Change-Id: Ia1fb11af84f91e678401bde11454522db9893f4c
2016-10-25Write nest levels in case of nested group calculations.Kohei Yoshida1-2/+6
Change-Id: Ie2a94bf76ab28f792ff5684879365fda81c10e2b
2016-10-25Use a singleton pattern here.Kohei Yoshida1-0/+2
Change-Id: I45e8bcdb4ee2717ac7e223e68e0c03da9473db5b
2016-10-25Initial take on group formula logging.Kohei Yoshida1-0/+68
For now, this logger only logs group formula calculations. Change-Id: Idab3cf58f8d9e5fd24fc9f7498d55e385ca93ca7