Skip to content

Commit

Permalink
Fix the linting problems in UnsafeBufferUsage.cpp
Browse files Browse the repository at this point in the history
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
0fd4175:

  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
  • Loading branch information
AMP999 authored and ziqingluo-90 committed Aug 1, 2023
1 parent ffecb43 commit 82b94a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clang/lib/Analysis/UnsafeBufferUsage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 82b94a9

Please sign in to comment.