mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-05 02:20:51 +00:00
Update source for clang-tidy 9.0.0
This commit is contained in:
parent
913b72fdaf
commit
e0712f444d
|
@ -1,10 +1,12 @@
|
||||||
Checks: '
|
Checks: '
|
||||||
-*,
|
-*,
|
||||||
bugprone-*,
|
bugprone-*,
|
||||||
|
-bugprone-branch-clone,
|
||||||
-bugprone-macro-parentheses,
|
-bugprone-macro-parentheses,
|
||||||
google-*,
|
google-*,
|
||||||
-google-build-using-namespace,
|
-google-build-using-namespace,
|
||||||
-google-readability-casting,
|
-google-readability-casting,
|
||||||
|
-google-readability-function-size,
|
||||||
-google-readability-todo,
|
-google-readability-todo,
|
||||||
-google-runtime-int,
|
-google-runtime-int,
|
||||||
-google-runtime-references,
|
-google-runtime-references,
|
||||||
|
@ -17,11 +19,13 @@ Checks: '
|
||||||
-modernize-loop-convert,
|
-modernize-loop-convert,
|
||||||
-modernize-use-auto,
|
-modernize-use-auto,
|
||||||
-modernize-use-nullptr,
|
-modernize-use-nullptr,
|
||||||
|
-modernize-use-trailing-return-type,
|
||||||
-modernize-use-using,
|
-modernize-use-using,
|
||||||
performance-*,
|
performance-*,
|
||||||
portability-*,
|
portability-*,
|
||||||
readability-*,
|
readability-*,
|
||||||
-readability-else-after-return,
|
-readability-else-after-return,
|
||||||
|
-readability-function-size,
|
||||||
-readability-implicit-bool-conversion,
|
-readability-implicit-bool-conversion,
|
||||||
-readability-isolate-declaration,
|
-readability-isolate-declaration,
|
||||||
-readability-magic-numbers,
|
-readability-magic-numbers,
|
||||||
|
|
|
@ -808,7 +808,7 @@ bool PageList::GetMultipartSizeList(fdpage_list_t& mplist, off_t partsize) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PageList::IsModified(void) const
|
bool PageList::IsModified() const
|
||||||
{
|
{
|
||||||
for(fdpage_list_t::const_iterator iter = pages.begin(); iter != pages.end(); ++iter){
|
for(fdpage_list_t::const_iterator iter = pages.begin(); iter != pages.end(); ++iter){
|
||||||
if(iter->modified){
|
if(iter->modified){
|
||||||
|
@ -818,7 +818,7 @@ bool PageList::IsModified(void) const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PageList::ClearAllModified(void)
|
bool PageList::ClearAllModified()
|
||||||
{
|
{
|
||||||
for(fdpage_list_t::iterator iter = pages.begin(); iter != pages.end(); ++iter){
|
for(fdpage_list_t::iterator iter = pages.begin(); iter != pages.end(); ++iter){
|
||||||
if(iter->modified){
|
if(iter->modified){
|
||||||
|
@ -957,7 +957,7 @@ void PageList::Dump()
|
||||||
//------------------------------------------------
|
//------------------------------------------------
|
||||||
bool FdEntity::mixmultipart = true;
|
bool FdEntity::mixmultipart = true;
|
||||||
|
|
||||||
bool FdEntity::SetNoMixMultipart(void)
|
bool FdEntity::SetNoMixMultipart()
|
||||||
{
|
{
|
||||||
bool old = mixmultipart;
|
bool old = mixmultipart;
|
||||||
mixmultipart = false;
|
mixmultipart = false;
|
||||||
|
@ -2035,7 +2035,7 @@ int FdEntity::RowFlush(const char* tpath, bool force_sync)
|
||||||
// Need to lock before calling this method.
|
// Need to lock before calling this method.
|
||||||
bool FdEntity::ReserveDiskSpace(off_t size)
|
bool FdEntity::ReserveDiskSpace(off_t size)
|
||||||
{
|
{
|
||||||
if(FdManager::get()->ReserveDiskSpace(size)){
|
if(FdManager::ReserveDiskSpace(size)){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2047,14 +2047,14 @@ bool FdEntity::ReserveDiskSpace(off_t size)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(FdManager::get()->ReserveDiskSpace(size)){
|
if(FdManager::ReserveDiskSpace(size)){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FdManager::get()->CleanupCacheDir();
|
FdManager::get()->CleanupCacheDir();
|
||||||
|
|
||||||
return FdManager::get()->ReserveDiskSpace(size);
|
return FdManager::ReserveDiskSpace(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t FdEntity::Read(char* bytes, off_t start, size_t size, bool force_load)
|
ssize_t FdEntity::Read(char* bytes, off_t start, size_t size, bool force_load)
|
||||||
|
|
|
@ -247,7 +247,7 @@ class FdManager
|
||||||
static off_t SetEnsureFreeDiskSpace(off_t size);
|
static off_t SetEnsureFreeDiskSpace(off_t size);
|
||||||
static bool IsSafeDiskSpace(const char* path, off_t size);
|
static bool IsSafeDiskSpace(const char* path, off_t size);
|
||||||
static void FreeReservedDiskSpace(off_t size);
|
static void FreeReservedDiskSpace(off_t size);
|
||||||
bool ReserveDiskSpace(off_t size);
|
static bool ReserveDiskSpace(off_t size);
|
||||||
|
|
||||||
// Return FdEntity associated with path, returning NULL on error. This operation increments the reference count; callers must decrement via Close after use.
|
// Return FdEntity associated with path, returning NULL on error. This operation increments the reference count; callers must decrement via Close after use.
|
||||||
FdEntity* GetFdEntity(const char* path, int existfd = -1);
|
FdEntity* GetFdEntity(const char* path, int existfd = -1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user