Commit Graph

28 Commits

Author SHA1 Message Date
Lars Toenning
bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00
Lars Toenning
970b7c3650 clang-format src 2023-04-18 16:07:19 +02:00
Mat Sutcliffe
c2ac37f552 Issue #77 Remove unused methods 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
2dc86652c2 Issue #77 Include style 2020-08-28 00:45:26 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
cba820cbce Ref T485 Update for efficient QString usage in CLogMessage:
- `debug()`, `warning()`, `error()` etc. overloaded on `const char16_t[]` to accept UTF-16 string literals.
- Overloads on `const char *` are deleted to avoid accidents.
- Message is stored as QString and/or QStringView depending which overload is used.
- The multiplexing between QString and QStringView is handled by a special value class, to keep the metaclass simple.
- QStringView does not have `arg()` method, so had to implement our own.
2019-02-22 20:34:54 +00:00
Mathew Sutcliffe
de5cb56525 Fixed strict aliasing warning
Summary:
Use `noquote` method instead of relying on undefined behaviour. This fixes a warning in GCC 6.3.

`noquote` method was added in Qt 5.4.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: kbasan

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D26
2017-06-23 18:17:56 +01:00
Mathew Sutcliffe
95a82f37a0 refs #800 QtInfoMsg severity was added in Qt 5.5, we can remove the category suffix workaround. 2016-12-13 19:00:36 +01:00
Mathew Sutcliffe
91ba7d9f12 CLogMessageHelper::stripFlags: fixed mistake when using QString::section(). 2016-07-31 23:17:48 +01:00
Mathew Sutcliffe
eeac403cfc refs #628 Provide more of the API of our std::integer_sequence substitute. 2016-04-03 18:17:39 +01:00
Mathew Sutcliffe
caa01f846b refs #624, #492 Refactor parts of CLogMessage into base class and use inheriting constructors to unify the construction idiom of CLogMessage and CStatusMessage. 2016-03-22 00:31:09 +00:00
Klaus Basan
c3722f9198 refs #485, refs #584 removed include blackmiscfreefunctions.h 2016-03-18 01:07:49 +00:00
Klaus Basan
144ba62572 refs #601, #600, #485 Status message handling.
* follow up of debug session, added failure/success to status message
* return status messages instead of directly logging in functions returning CStatusMessage.
* Ignore empty preformatted messages.
* new log category
2016-03-17 19:45:04 +00:00
Roland Winklmeier
1ea2f34f75 Fix doxygen documentation in src, samples and tests
refs #594
2016-02-16 20:01:33 +01:00
Klaus Basan
d6733d49bb refs #522, mutex for mutable members (thread safe)
* copy/assignment/lock for mutable members
* also removed redundant in status message (slack discussion MS/KB)
2015-11-26 13:54:47 +01:00
Michał Garapich
1b06e15b61 refs #510 Remove underscores from all the source file names 2015-11-22 12:53:09 +01:00
Mathew Sutcliffe
a102fc73b6 refs #466 Resolved TODO items in logging. 2015-11-19 21:00:59 +00:00
Roland Winklmeier
1b26311983 Fix license header spelling 2015-04-16 00:59:56 +02:00
Mathew Sutcliffe
69905d310f refs #350 Fixed CLogMessage methods for logging preformatted statusmessages. 2014-12-13 01:42:32 +00:00
Klaus Basan
159dbe9f5a refs #288, convenience methods in log message 2014-11-30 00:54:56 +01:00
Klaus Basan
ffc9cc1b77 refs #335, log messages directly from status messages 2014-11-30 00:54:22 +01:00
Mathew Sutcliffe
d0894d2cf9 refs #336 Convenience methods to create validation messages. 2014-10-16 17:06:31 +01:00
Mathew Sutcliffe
067344df24 refs #336 Added class CLogCategory to represent a log category. The category logic of CLogMessage is moved into this new class. 2014-10-16 17:05:28 +01:00
Mathew Sutcliffe
ce6cdf12a7 refs #316 Added CLogMessage for logging messages, and corresponding changes to CStatusMessage and CTextMessage. 2014-10-04 22:16:35 +01:00
Roland Winklmeier
08302c23bb Remove obsolete logging framework
This changes removes classes of the obsolete logging frame work and
all its references. It was not used anywhere, but included in several
headers.
Had to add header QDateTime in some places, which was not correctly
included and now missing.

refs #90
2014-01-18 20:09:03 +01:00
Klaus Basan
c6426a0759 Move Math constants into class (to be consistent with other constants), tested against minGW / gcc 4.7.2 and fixed various issues (mainly initializer lists, unused variables). BlackMisc compiles now in MinGW, but still issues (especially with qDebug() friend methods) 2013-04-29 16:00:41 +02:00
Mathew Sutcliffe
9916419678 #31 Squashed merge of commits relating to the plugin system and IContext redesign, from the 'interconnect' branch. 2013-04-17 01:26:54 +01:00
Roland Winklmeier
4e219f14a8 blacklib folder reorganisation 2013-03-11 20:41:29 +01:00