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);
|
void addLink(const QString &origLink, const QString &matchedLink);
|
||||||
|
|
||||||
template <typename T, typename... Args>
|
template <typename T, typename... Args>
|
||||||
|
// clang-format off
|
||||||
|
// clang-format can be enabled once clang-format v11+ has been installed in CI
|
||||||
T *emplace(Args &&...args)
|
T *emplace(Args &&...args)
|
||||||
|
// clang-format on
|
||||||
{
|
{
|
||||||
static_assert(std::is_base_of<MessageElement, T>::value,
|
static_assert(std::is_base_of<MessageElement, T>::value,
|
||||||
"T must extend MessageElement");
|
"T must extend MessageElement");
|
||||||
|
|
|
@ -43,7 +43,10 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T2, typename... Args>
|
template <typename T2, typename... Args>
|
||||||
|
// clang-format off
|
||||||
|
// clang-format can be enabled once clang-format v11+ has been installed in CI
|
||||||
LayoutCreator<T2> emplace(Args &&...args)
|
LayoutCreator<T2> emplace(Args &&...args)
|
||||||
|
// clang-format on
|
||||||
{
|
{
|
||||||
T2 *t = new T2(std::forward<Args>(args)...);
|
T2 *t = new T2(std::forward<Args>(args)...);
|
||||||
|
|
||||||
|
@ -184,7 +187,10 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T, typename... Args>
|
template <typename T, typename... Args>
|
||||||
|
// clang-format off
|
||||||
|
// clang-format can be enabled once clang-format v11+ has been installed in CI
|
||||||
LayoutCreator<T> makeDialog(Args &&...args)
|
LayoutCreator<T> makeDialog(Args &&...args)
|
||||||
|
// clang-format on
|
||||||
{
|
{
|
||||||
T *t = new T(std::forward<Args>(args)...);
|
T *t = new T(std::forward<Args>(args)...);
|
||||||
t->setAttribute(Qt::WA_DeleteOnClose);
|
t->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
Loading…
Reference in a new issue