mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Bump clang-format
This patch contains a bump of the configured clang-format version from 17.0.3 to 18.1.8 and automatically generated C++ source updates. The main difference we are seeing from this is fixes for previously incomplete reformats.
This commit is contained in:
parent
c27e18631c
commit
db42b2cfe5
12 changed files with 32 additions and 35 deletions
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: 'v17.0.3'
|
||||
rev: 'v18.1.8'
|
||||
hooks:
|
||||
- id: clang-format
|
||||
types_or:
|
||||
|
|
11
src/util.cc
11
src/util.cc
|
@ -1649,7 +1649,8 @@ TEST_CASE("util path ops"){
|
|||
#ifdef _MSC_VER
|
||||
// TODO: adapt these tests to Windows paths
|
||||
#else
|
||||
SUBCASE("SafeDirname"){SafeDirname d("/this/is/a/path", false);
|
||||
SUBCASE("SafeDirname") {
|
||||
SafeDirname d("/this/is/a/path", false);
|
||||
CHECK(d.result == "/this/is/a");
|
||||
|
||||
SafeDirname d2("invalid", false);
|
||||
|
@ -1671,10 +1672,7 @@ SUBCASE("SafeBasename") {
|
|||
#endif
|
||||
}
|
||||
|
||||
SafeDirname::SafeDirname(const char* path, bool error_aborts)
|
||||
: SafePathOp() {
|
||||
DoFunc(path ? path : "", error_aborts);
|
||||
}
|
||||
SafeDirname::SafeDirname(const char* path, bool error_aborts) : SafePathOp() { DoFunc(path ? path : "", error_aborts); }
|
||||
|
||||
SafeDirname::SafeDirname(const string& path, bool error_aborts) : SafePathOp() { DoFunc(path, error_aborts); }
|
||||
|
||||
|
@ -2303,8 +2301,7 @@ static void strerror_r_helper(char* result, char* buf, size_t buflen) {
|
|||
buf[buflen - 1] = 0;
|
||||
}
|
||||
|
||||
static void strerror_r_helper(int result, char* buf, size_t buflen) { /* XSI flavor of strerror_r, no-op. */
|
||||
}
|
||||
static void strerror_r_helper(int result, char* buf, size_t buflen) { /* XSI flavor of strerror_r, no-op. */ }
|
||||
|
||||
void zeek_strerror_r(int zeek_errno, char* buf, size_t buflen) {
|
||||
#ifdef _MSC_VER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue