1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

12 Commits

Author SHA1 Message Date
Anthony Bilinski
8abd4e47e9
refactor(style): use #pragma once rather than include guards 2020-05-03 15:51:52 -07:00
sudden6
48d23234b7
chore(style): add CppCoreGuidlines as reference
Also fix #3851 while at it.
2019-10-14 12:24:01 +02:00
Anthony Bilinski
25ed12c96a
chore(docs): update coding_standards to avoid singletons
Fix #5339
2018-09-16 19:40:22 -07:00
Vincas Dargis
eb9b897797 docs(coding): fix string usage guidelines
Update docs to recommend using `%` operator with `QLatin1String` even for joining two strings (not only *more than two* strings).

Mentioned optimisation of "lightweight" QLatin1String copying-and-converting-to-utf16 when appending only works with QStringBuilder (operator %). Otherwise, QLatin1String will be converted to QString, and only then copied (appended), which is slower.
2017-08-16 22:22:02 +03:00
sudden6
90910cbfe1
docs(codingstyle): update min qt version 2017-06-28 18:53:43 +02:00
Vincas Dargis
bf8ecb4419 docs(coding): add guides about string usage
Add guides about using QStringLiteral, QLatin1String, QLatin1Char and QStringBuilder for more efficient strings.

Qt uses uses these techniques internally and can be considered as good coding practice when working with Qt libraries.
2017-06-20 20:30:17 +03:00
Zetok Zalbavar
e65e45aafe
chore: add script for code formatting 2017-03-02 13:39:46 +00:00
Zetok Zalbavar
4367dc601d
style(clang-format): don't indent case statements 2017-02-26 09:51:50 +00:00
Zetok Zalbavar
c1eac09931
style: change brace style to K&R in .clang-format 2017-02-26 09:51:50 +00:00
Zetok Zalbavar
297f0935f0
docs(coding): CMake is now primarily used and qmake is deprecated 2017-02-26 09:51:50 +00:00
Zetok Zalbavar
21195d363a
docs: slightly improve link formatting and remove trailing whitespaces 2017-02-26 09:51:50 +00:00
initramfs
e4d40f11ed
docs(clangformat): add documentation on coding style with respect to clang-format 2017-02-26 09:51:49 +00:00