mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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>
|
#include <LibWebView/History.h>
|
||||||
|
|
||||||
#import <Application/ApplicationDelegate.h>
|
#import <Application/ApplicationDelegate.h>
|
||||||
#import <LibWebView/UserAgent.h>
|
|
||||||
#import <LibWeb/Loader/ResourceLoader.h>
|
#import <LibWeb/Loader/ResourceLoader.h>
|
||||||
|
#import <LibWebView/UserAgent.h>
|
||||||
#import <UI/LadybirdWebView.h>
|
#import <UI/LadybirdWebView.h>
|
||||||
#import <UI/Tab.h>
|
#import <UI/Tab.h>
|
||||||
#import <UI/TabController.h>
|
#import <UI/TabController.h>
|
||||||
|
@ -489,7 +489,6 @@ enum class IsHistoryNavigation {
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#pragma mark - NSToolbarDelegate
|
#pragma mark - NSToolbarDelegate
|
||||||
|
|
||||||
- (NSToolbarItem*)toolbar:(NSToolbar*)toolbar
|
- (NSToolbarItem*)toolbar:(NSToolbar*)toolbar
|
||||||
|
|
|
@ -10,6 +10,7 @@ if [ "$#" -eq "1" ]; then
|
||||||
git ls-files -- \
|
git ls-files -- \
|
||||||
'*.cpp' \
|
'*.cpp' \
|
||||||
'*.h' \
|
'*.h' \
|
||||||
|
'*.mm' \
|
||||||
':!:Base' \
|
':!:Base' \
|
||||||
':!:Kernel/FileSystem/Ext2FS/Definitions.h' \
|
':!:Kernel/FileSystem/Ext2FS/Definitions.h' \
|
||||||
':!:Userland/Libraries/LibCodeComprehension/Cpp/Tests/*' \
|
':!:Userland/Libraries/LibCodeComprehension/Cpp/Tests/*' \
|
||||||
|
@ -19,7 +20,7 @@ if [ "$#" -eq "1" ]; then
|
||||||
else
|
else
|
||||||
files=()
|
files=()
|
||||||
for file in "${@:2}"; do
|
for file in "${@:2}"; do
|
||||||
if [[ "${file}" == *".cpp" || "${file}" == *".h" ]]; then
|
if [[ "${file}" == *".cpp" || "${file}" == *".h" || "${file}" == *".mm" ]]; then
|
||||||
files+=("${file}")
|
files+=("${file}")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -60,5 +61,5 @@ if (( ${#files[@]} )); then
|
||||||
"${CLANG_FORMAT}" -style=file -i "${files[@]}"
|
"${CLANG_FORMAT}" -style=file -i "${files[@]}"
|
||||||
echo "Maybe some files have changed. Sorry, but clang-format doesn't indicate what happened."
|
echo "Maybe some files have changed. Sorry, but clang-format doesn't indicate what happened."
|
||||||
else
|
else
|
||||||
echo "No .cpp or .h files to check."
|
echo "No .cpp, .h or .mm files to check."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue