mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-03 05:00:15 +00:00
Update for clang-tidy 12 (#1644)
This commit is contained in:
parent
c4fa53ec8b
commit
cb9148f6cd
@ -3,6 +3,7 @@ Checks: '
|
|||||||
bugprone-*,
|
bugprone-*,
|
||||||
-bugprone-branch-clone,
|
-bugprone-branch-clone,
|
||||||
-bugprone-macro-parentheses,
|
-bugprone-macro-parentheses,
|
||||||
|
-bugprone-narrowing-conversions,
|
||||||
-bugprone-unhandled-self-assignment,
|
-bugprone-unhandled-self-assignment,
|
||||||
google-*,
|
google-*,
|
||||||
-google-build-using-namespace,
|
-google-build-using-namespace,
|
||||||
@ -24,10 +25,11 @@ Checks: '
|
|||||||
-modernize-use-trailing-return-type,
|
-modernize-use-trailing-return-type,
|
||||||
-modernize-use-using,
|
-modernize-use-using,
|
||||||
performance-*,
|
performance-*,
|
||||||
-performance-inefficient-string-concatenation,
|
-performance-no-int-to-ptr,
|
||||||
portability-*,
|
portability-*,
|
||||||
readability-*,
|
readability-*,
|
||||||
-readability-else-after-return,
|
-readability-else-after-return,
|
||||||
|
-readability-function-cognitive-complexity,
|
||||||
-readability-function-size,
|
-readability-function-size,
|
||||||
-readability-implicit-bool-conversion,
|
-readability-implicit-bool-conversion,
|
||||||
-readability-inconsistent-declaration-parameter-name,
|
-readability-inconsistent-declaration-parameter-name,
|
||||||
|
@ -192,7 +192,9 @@ std::string get_canonical_headers(const struct curl_slist* list)
|
|||||||
// skip empty-value headers (as they are discarded by libcurl)
|
// skip empty-value headers (as they are discarded by libcurl)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
strhead = strkey + ":" + strval;
|
strhead = strkey;
|
||||||
|
strhead += ":";
|
||||||
|
strhead += strval;
|
||||||
}else{
|
}else{
|
||||||
strhead = trim(lower(strhead));
|
strhead = trim(lower(strhead));
|
||||||
}
|
}
|
||||||
@ -221,7 +223,9 @@ std::string get_canonical_headers(const struct curl_slist* list, bool only_amz)
|
|||||||
// skip empty-value headers (as they are discarded by libcurl)
|
// skip empty-value headers (as they are discarded by libcurl)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
strhead = strkey + ":" + strval;
|
strhead = strkey;
|
||||||
|
strhead += ":";
|
||||||
|
strhead += strval;
|
||||||
}else{
|
}else{
|
||||||
strhead = trim(lower(strhead));
|
strhead = trim(lower(strhead));
|
||||||
}
|
}
|
||||||
|
@ -2699,7 +2699,7 @@ static int list_bucket(const char* path, S3ObjList& head, const char* delimiter,
|
|||||||
|
|
||||||
while(truncated){
|
while(truncated){
|
||||||
// append parameters to query in alphabetical order
|
// append parameters to query in alphabetical order
|
||||||
std::string each_query = "";
|
std::string each_query;
|
||||||
if(!next_continuation_token.empty()){
|
if(!next_continuation_token.empty()){
|
||||||
each_query += "continuation-token=" + urlEncode(next_continuation_token) + "&";
|
each_query += "continuation-token=" + urlEncode(next_continuation_token) + "&";
|
||||||
next_continuation_token = "";
|
next_continuation_token = "";
|
||||||
|
@ -471,7 +471,7 @@ unsigned char* s3fs_decode64(const char* input, size_t* plength)
|
|||||||
|
|
||||||
// Base location for transform. The range 0xE000 - 0xF8ff
|
// Base location for transform. The range 0xE000 - 0xF8ff
|
||||||
// is a private range, se use the start of this range.
|
// is a private range, se use the start of this range.
|
||||||
static unsigned int escape_base = 0xe000;
|
static const unsigned int escape_base = 0xe000;
|
||||||
|
|
||||||
// encode bytes into wobbly utf8.
|
// encode bytes into wobbly utf8.
|
||||||
// 'result' can be null. returns true if transform was needed.
|
// 'result' can be null. returns true if transform was needed.
|
||||||
|
Loading…
Reference in New Issue
Block a user