mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Disable formatting on "contested lines" (#3714)
These lines are formatted differently between clang-format 10 (on CI) and clang-format 11+ (on most dev systems)
This commit is contained in:
parent
66b9b04401
commit
4aa5b04e37
|
@ -63,7 +63,10 @@ public:
|
|||
void addLink(const QString &origLink, const QString &matchedLink);
|
||||
|
||||
template <typename T, typename... Args>
|
||||
T *emplace(Args &&... args)
|
||||
// clang-format off
|
||||
// clang-format can be enabled once clang-format v11+ has been installed in CI
|
||||
T *emplace(Args &&...args)
|
||||
// clang-format on
|
||||
{
|
||||
static_assert(std::is_base_of<MessageElement, T>::value,
|
||||
"T must extend MessageElement");
|
||||
|
|
|
@ -43,7 +43,10 @@ public:
|
|||
}
|
||||
|
||||
template <typename T2, typename... Args>
|
||||
LayoutCreator<T2> emplace(Args &&... args)
|
||||
// clang-format off
|
||||
// clang-format can be enabled once clang-format v11+ has been installed in CI
|
||||
LayoutCreator<T2> emplace(Args &&...args)
|
||||
// clang-format on
|
||||
{
|
||||
T2 *t = new T2(std::forward<Args>(args)...);
|
||||
|
||||
|
@ -184,7 +187,10 @@ private:
|
|||
};
|
||||
|
||||
template <typename T, typename... Args>
|
||||
LayoutCreator<T> makeDialog(Args &&... args)
|
||||
// clang-format off
|
||||
// clang-format can be enabled once clang-format v11+ has been installed in CI
|
||||
LayoutCreator<T> makeDialog(Args &&...args)
|
||||
// clang-format on
|
||||
{
|
||||
T *t = new T(std::forward<Args>(args)...);
|
||||
t->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
|
Loading…
Reference in a new issue