Update source for clang-tidy 9.0.0

This commit is contained in:
Andrew Gaul 2019-11-29 23:25:26 -08:00
parent 913b72fdaf
commit e0712f444d
3 changed files with 11 additions and 7 deletions

View File

@ -1,10 +1,12 @@
Checks: '
-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-macro-parentheses,
google-*,
-google-build-using-namespace,
-google-readability-casting,
-google-readability-function-size,
-google-readability-todo,
-google-runtime-int,
-google-runtime-references,
@ -17,11 +19,13 @@ Checks: '
-modernize-loop-convert,
-modernize-use-auto,
-modernize-use-nullptr,
-modernize-use-trailing-return-type,
-modernize-use-using,
performance-*,
portability-*,
readability-*,
-readability-else-after-return,
-readability-function-size,
-readability-implicit-bool-conversion,
-readability-isolate-declaration,
-readability-magic-numbers,

View File

@ -808,7 +808,7 @@ bool PageList::GetMultipartSizeList(fdpage_list_t& mplist, off_t partsize) const
return true;
}
bool PageList::IsModified(void) const
bool PageList::IsModified() const
{
for(fdpage_list_t::const_iterator iter = pages.begin(); iter != pages.end(); ++iter){
if(iter->modified){
@ -818,7 +818,7 @@ bool PageList::IsModified(void) const
return false;
}
bool PageList::ClearAllModified(void)
bool PageList::ClearAllModified()
{
for(fdpage_list_t::iterator iter = pages.begin(); iter != pages.end(); ++iter){
if(iter->modified){
@ -957,7 +957,7 @@ void PageList::Dump()
//------------------------------------------------
bool FdEntity::mixmultipart = true;
bool FdEntity::SetNoMixMultipart(void)
bool FdEntity::SetNoMixMultipart()
{
bool old = mixmultipart;
mixmultipart = false;
@ -2035,7 +2035,7 @@ int FdEntity::RowFlush(const char* tpath, bool force_sync)
// Need to lock before calling this method.
bool FdEntity::ReserveDiskSpace(off_t size)
{
if(FdManager::get()->ReserveDiskSpace(size)){
if(FdManager::ReserveDiskSpace(size)){
return true;
}
@ -2047,14 +2047,14 @@ bool FdEntity::ReserveDiskSpace(off_t size)
return false;
}
if(FdManager::get()->ReserveDiskSpace(size)){
if(FdManager::ReserveDiskSpace(size)){
return true;
}
}
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)

View File

@ -247,7 +247,7 @@ class FdManager
static off_t SetEnsureFreeDiskSpace(off_t size);
static bool IsSafeDiskSpace(const char* path, 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.
FdEntity* GetFdEntity(const char* path, int existfd = -1);