Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 10, 2023
1 parent 4df59ed commit 0980d43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cpp-terminal/platforms/conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ bool is_valid_utf8_code_unit(const std::string& s)
static constexpr const int b111OOOOO{224};

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++14)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++20)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++11)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++17)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++11)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++17)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++14)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 110 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++20)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b111OOOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]
static constexpr const int b1111OOOO{240};

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++14)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++20)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++11)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++17)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++11)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++17)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++14)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 111 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++20)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b1111OOOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]
static constexpr const int b11111OOO{248};

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++14)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++20)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++11)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 win32 (c++17)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++11)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++17)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++14)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]

Check warning on line 112 in cpp-terminal/platforms/conversion.cpp

View workflow job for this annotation

GitHub Actions / msvc2022 x64 (c++20)

'int const `bool __cdecl Term::Private::is_valid_utf8_code_unit(std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &)'::`2'::b11111OOO': 'const' variable is not used [D:\a\cpp-terminal\cpp-terminal\build\cpp-terminal\platforms\cpp-terminal-platforms.vcxproj]
return ((s[0] & b1OOOOOOO) == 0)
|| (((s[0] & b111OOOOO) == b11OOOOOO) && ((s[1] & b11OOOOOO) == b1OOOOOOO))
|| (((s[0] & b1111OOOO) == b111OOOOO) && ((s[1] & b11OOOOOO) == b1OOOOOOO) && ((s[2] & b11OOOOOO) == b1OOOOOOO))
|| (((s[0] & b11111OOO) == b1111OOOO) && ((s[1] & b11OOOOOO) == b1OOOOOOO) && ((s[2] & b11OOOOOO) == b1OOOOOOO) && ((s[3] & b11OOOOOO) == b1OOOOOOO));
return ((s[0] & b1OOOOOOO) == 0) || (((s[0] & b111OOOOO) == b11OOOOOO) && ((s[1] & b11OOOOOO) == b1OOOOOOO)) || (((s[0] & b1111OOOO) == b111OOOOO) && ((s[1] & b11OOOOOO) == b1OOOOOOO) && ((s[2] & b11OOOOOO) == b1OOOOOOO)) || (((s[0] & b11111OOO) == b1111OOOO) && ((s[1] & b11OOOOOO) == b1OOOOOOO) && ((s[2] & b11OOOOOO) == b1OOOOOOO) && ((s[3] & b11OOOOOO) == b1OOOOOOO));
}

} // namespace Private
Expand Down

0 comments on commit 0980d43

Please sign in to comment.