Commit 82b94a9f authored by Amirreza Ashouri's avatar Amirreza Ashouri Committed by ziqingluo-90
Browse files

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
0fd41759:

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

Reviewed by: ziqingluo-90 (Ziqing Luo)

Differential revision: https://reviews.llvm.org/D155814
parent ffecb43c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)) {