feat: Clang --werror fixes & Clang-Format Standardisation#2174
feat: Clang --werror fixes & Clang-Format Standardisation#2174ninetailedtori wants to merge 5 commits into
--werror fixes & Clang-Format Standardisation#2174Conversation
Signed-off-by: Toria <ninetailedtori@uwu.gal>
- .clang-format standardisation - clang-format into workflow - meson cleanup - add clang `--werror` build fixes. Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
|
I can't compile it rn, but I can't work out where the bug is. Would adore some help with this one, but I think it's my own machine. Also @misyltoad updated your git submods and wraps to use your new username :3 |
|
"My first 'Fuck you, world!' contribution."
So, all those 90 open PRs must be redone, most distributions (from the list) must recreate their patches, most forks and maybe even Valve themselves too ... IDK, LGTM! |
|
I wouldn't say they're that egregious. This is a wrap fallback adding system, and it manages the submodules in a unified method, that links with meson directly. It can always use system directly first, and most distributions like to package their OWN dependencies as opposed to using wrap, see Arch with arch-meson, designed with --wrapmode=nodownload and wraps disabled outside of forced fallback. I can always drop back the git submodules in, and revert this, but the idea was to clean up the meson build which has stayed rather...stagnant for the state of back-compat, and it's not too violent a change. Besides, we wouldn't be including this in a minor change, this would be in a major version change, as is natural with potentially breaking changes. |
|
I mean formatting, not meson changes specifically. But ok, lets pretend it going to be a thing somehow, maybe 4.0 branch or so, here is some notes: .editorconfig
.clang-format
.clang-tidy (going all-in, I mean why not add linter config too)
All this is just my observation and my own experience. Treat as FYI. EDIT: I also like trailing return types. auto Init() -> bool override;
auto PostInit() -> bool override;
auto GetInstanceExtensions() const -> std::span<char const* const> override;
auto GetDeviceExtensions(VkPhysicalDevice pVkPhysicalDevice) const -> std::span<char const* const> override;
auto GetPresentLayout() const -> VkImageLayout override;
void GetPreferredOutputFormat(uint32_t* pPrimaryPlaneFormat, uint32_t* pOverlayPlaneFormat) const override;
auto ValidPhysicalDevice(VkPhysicalDevice pVkPhysicalDevice) const -> bool override;not like this: virtual bool Init() override;
virtual bool PostInit() override;
virtual std::span<const char *const> GetInstanceExtensions() const override;
virtual std::span<const char *const> GetDeviceExtensions( VkPhysicalDevice pVkPhysicalDevice ) const override;
virtual VkImageLayout GetPresentLayout() const override;
virtual void GetPreferredOutputFormat( uint32_t *pPrimaryPlaneFormat, uint32_t *pOverlayPlaneFormat ) const override;
virtual bool ValidPhysicalDevice( VkPhysicalDevice pVkPhysicalDevice ) const override;Just Footnotes
|
--werrorbuild fixes.