[clang] 82b94a9 - Fix the linting problems in UnsafeBufferUsage.cpp

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 16:18:46 PDT 2023


Author: Amirreza Ashouri
Date: 2023-08-01T16:17:40-07:00
New Revision: 82b94a9f7be9474acd0a950ce521c439057066be

URL: https://github.com/llvm/llvm-project/commit/82b94a9f7be9474acd0a950ce521c439057066be
DIFF: https://github.com/llvm/llvm-project/commit/82b94a9f7be9474acd0a950ce521c439057066be.diff

LOG: Fix the linting problems in UnsafeBufferUsage.cpp

Fix the linting problems which causes `clang/utils/ci/run-buildbot check-format` to return 1.

Also make a correction for the email address of the author of
0fd4175907b40fe63131482c162d7e0f76000521:

  The correct email address is "ar.ashouri999 at gmail.com", not "ar.ashouri999 at google.com".

Reviewed by: ziqingluo-90 (Ziqing Luo)

Differential revision: https://reviews.llvm.org/D155814

Added: 
    

Modified: 
    clang/lib/Analysis/UnsafeBufferUsage.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp
index 5782ad7e6e443e..6f9f5f5e7ee7f2 100644
--- a/clang/lib/Analysis/UnsafeBufferUsage.cpp
+++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -2267,7 +2267,6 @@ void clang::checkUnsafeBufferUsage(const Decl *D,
 #endif
 
   assert(D && D->getBody());
-
   // We do not want to visit a Lambda expression defined inside a method independently.
   // Instead, it should be visited along with the outer method.
   if (const auto *fd = dyn_cast<CXXMethodDecl>(D)) {


        


More information about the cfe-commits mailing list