[PATCH] D141133: [clang-tidy] Implement CppCoreGuideline F.54

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 8 07:28:05 PST 2023


Eugene.Zelenko added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidCaptureThisWithCaptureDefaultCheck.cpp:32
+      if (Capture.getCaptureKind() == LCK_ByRef) {
+        SourceManager &SourceMgr = Context.getSourceManager();
+        SourceLocation AddressofLoc = utils::lexer::findPreviousTokenKind(
----------------
Should be `const SourceManager &`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141133/new/

https://reviews.llvm.org/D141133



More information about the cfe-commits mailing list