mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Lint .mm files with lint-clang-format.sh
This commit is contained in:
parent
4ff4ac11b9
commit
f15d46fb8b
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/juniorrantila Commit: https://github.com/SerenityOS/serenity/commit/f15d46fb8b Pull-request: https://github.com/SerenityOS/serenity/pull/21158 Reviewed-by: https://github.com/timschumi ✅
2 changed files with 4 additions and 4 deletions
|
@ -7,8 +7,8 @@
|
|||
#include <LibWebView/History.h>
|
||||
|
||||
#import <Application/ApplicationDelegate.h>
|
||||
#import <LibWebView/UserAgent.h>
|
||||
#import <LibWeb/Loader/ResourceLoader.h>
|
||||
#import <LibWebView/UserAgent.h>
|
||||
#import <UI/LadybirdWebView.h>
|
||||
#import <UI/Tab.h>
|
||||
#import <UI/TabController.h>
|
||||
|
@ -489,7 +489,6 @@ enum class IsHistoryNavigation {
|
|||
return YES;
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - NSToolbarDelegate
|
||||
|
||||
- (NSToolbarItem*)toolbar:(NSToolbar*)toolbar
|
||||
|
|
|
@ -10,6 +10,7 @@ if [ "$#" -eq "1" ]; then
|
|||
git ls-files -- \
|
||||
'*.cpp' \
|
||||
'*.h' \
|
||||
'*.mm' \
|
||||
':!:Base' \
|
||||
':!:Kernel/FileSystem/Ext2FS/Definitions.h' \
|
||||
':!:Userland/Libraries/LibCodeComprehension/Cpp/Tests/*' \
|
||||
|
@ -19,7 +20,7 @@ if [ "$#" -eq "1" ]; then
|
|||
else
|
||||
files=()
|
||||
for file in "${@:2}"; do
|
||||
if [[ "${file}" == *".cpp" || "${file}" == *".h" ]]; then
|
||||
if [[ "${file}" == *".cpp" || "${file}" == *".h" || "${file}" == *".mm" ]]; then
|
||||
files+=("${file}")
|
||||
fi
|
||||
done
|
||||
|
@ -60,5 +61,5 @@ if (( ${#files[@]} )); then
|
|||
"${CLANG_FORMAT}" -style=file -i "${files[@]}"
|
||||
echo "Maybe some files have changed. Sorry, but clang-format doesn't indicate what happened."
|
||||
else
|
||||
echo "No .cpp or .h files to check."
|
||||
echo "No .cpp, .h or .mm files to check."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue