mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
ci: Use clang-format 16 (#4929)
This commit is contained in:
parent
f4726ed7a8
commit
56346874e1
8
.github/workflows/check-formatting.yml
vendored
8
.github/workflows/check-formatting.yml
vendored
|
@ -23,10 +23,14 @@ jobs:
|
||||||
run: sudo apt-get update
|
run: sudo apt-get update
|
||||||
|
|
||||||
- name: Install clang-format
|
- name: Install clang-format
|
||||||
run: sudo apt-get -y install clang-format dos2unix
|
run: sudo apt-get -y install dos2unix
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: ./tools/check-format.sh
|
uses: DoozyX/clang-format-lint-action@v0.16.2
|
||||||
|
with:
|
||||||
|
source: "./src ./tests/src ./benchmarks/src ./mocks/include"
|
||||||
|
extensions: "hpp,cpp"
|
||||||
|
clangFormatVersion: 16
|
||||||
|
|
||||||
- name: Check line-endings
|
- name: Check line-endings
|
||||||
run: ./tools/check-line-endings.sh
|
run: ./tools/check-line-endings.sh
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
- Bugfix: Fixed the input completion popup from disappearing when clicking on it on Windows and macOS. (#4876)
|
- Bugfix: Fixed the input completion popup from disappearing when clicking on it on Windows and macOS. (#4876)
|
||||||
- Bugfix: Fixed double-click text selection moving its position with each new message. (#4898)
|
- Bugfix: Fixed double-click text selection moving its position with each new message. (#4898)
|
||||||
- Bugfix: Fixed an issue where notifications on Windows would contain no or an old avatar. (#4899)
|
- Bugfix: Fixed an issue where notifications on Windows would contain no or an old avatar. (#4899)
|
||||||
|
- Dev: Change clang-format from v14 to v16. (#4929)
|
||||||
- Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791)
|
- Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791)
|
||||||
- Dev: Temporarily disable High DPI scaling on Qt6 builds on Windows. (#4767)
|
- Dev: Temporarily disable High DPI scaling on Qt6 builds on Windows. (#4767)
|
||||||
- Dev: Tests now run on Ubuntu 22.04 instead of 20.04 to loosen C++ restrictions in tests. (#4774)
|
- Dev: Tests now run on Ubuntu 22.04 instead of 20.04 to loosen C++ restrictions in tests. (#4774)
|
||||||
|
|
|
@ -62,7 +62,7 @@ The code is formatted using clang format in Qt Creator. [.clang-format](src/.cla
|
||||||
|
|
||||||
### Get it automated with QT Creator + Beautifier + Clang Format
|
### Get it automated with QT Creator + Beautifier + Clang Format
|
||||||
|
|
||||||
1. Download LLVM: https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.5/LLVM-15.0.5-win64.exe
|
1. Download LLVM: https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.6/LLVM-16.0.6-win64.exe
|
||||||
2. During the installation, make sure to add it to your path
|
2. During the installation, make sure to add it to your path
|
||||||
3. In QT Creator, select `Help` > `About Plugins` > `C++` > `Beautifier` to enable the plugin
|
3. In QT Creator, select `Help` > `About Plugins` > `C++` > `Beautifier` to enable the plugin
|
||||||
4. Restart QT Creator
|
4. Restart QT Creator
|
||||||
|
|
|
@ -189,8 +189,8 @@ QString HotkeyController::categoryName(HotkeyCategory category) const
|
||||||
return categoryData.name;
|
return categoryData.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::map<HotkeyCategory, HotkeyCategoryData>
|
const std::map<HotkeyCategory, HotkeyCategoryData> &
|
||||||
&HotkeyController::categories() const
|
HotkeyController::categories() const
|
||||||
{
|
{
|
||||||
return this->hotkeyCategories_;
|
return this->hotkeyCategories_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,8 +81,8 @@ public:
|
||||||
/**
|
/**
|
||||||
* @returns a const map with the HotkeyCategory enum as its key, and HotkeyCategoryData as the value.
|
* @returns a const map with the HotkeyCategory enum as its key, and HotkeyCategoryData as the value.
|
||||||
**/
|
**/
|
||||||
[[nodiscard]] const std::map<HotkeyCategory, HotkeyCategoryData>
|
[[nodiscard]] const std::map<HotkeyCategory, HotkeyCategoryData> &
|
||||||
&categories() const;
|
categories() const;
|
||||||
|
|
||||||
pajlada::Signals::NoArgSignal onItemsUpdated;
|
pajlada::Signals::NoArgSignal onItemsUpdated;
|
||||||
|
|
||||||
|
|
|
@ -1251,8 +1251,8 @@ void TwitchChannel::addReplyThread(const std::shared_ptr<MessageThread> &thread)
|
||||||
this->threads_[thread->rootId()] = thread;
|
this->threads_[thread->rootId()] = thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::unordered_map<QString, std::weak_ptr<MessageThread>>
|
const std::unordered_map<QString, std::weak_ptr<MessageThread>> &
|
||||||
&TwitchChannel::threads() const
|
TwitchChannel::threads() const
|
||||||
{
|
{
|
||||||
return this->threads_;
|
return this->threads_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -973,8 +973,8 @@ qreal SplitContainer::Node::getVerticalFlex() const
|
||||||
return this->flexV_;
|
return this->flexV_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<std::unique_ptr<SplitContainer::Node>>
|
const std::vector<std::unique_ptr<SplitContainer::Node>> &
|
||||||
&SplitContainer::Node::getChildren()
|
SplitContainer::Node::getChildren()
|
||||||
{
|
{
|
||||||
return this->children_;
|
return this->children_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue