Author: Takuya Shimizu Date: 2023-06-23T22:25:04+09:00 New Revision: 940c94e1c1b99511630b6f61890ac54161b5829c
URL: https://github.com/llvm/llvm-project/commit/940c94e1c1b99511630b6f61890ac54161b5829c DIFF: https://github.com/llvm/llvm-project/commit/940c94e1c1b99511630b6f61890ac54161b5829c.diff LOG: [clang][Sema] Fix comments to conform to bugprone-argument-comment (NFC) Makes some comments conform to bugprone-argument-comment (https://clang.llvm.org/extra/clang-tidy/checks/bugprone/argument-comment.html) Added: Modified: clang/lib/Sema/Sema.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 694e07b46aaf0..24363af392ea2 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -1365,12 +1365,12 @@ void Sema::ActOnEndOfTranslationUnit() { << DiagD << DiagRange; else Diag(DiagD->getLocation(), diag::warn_unneeded_internal_decl) - << /*function*/ 0 << DiagD << DiagRange; + << /*function=*/0 << DiagD << DiagRange; } } else { if (FD->getDescribedFunctionTemplate()) Diag(DiagD->getLocation(), diag::warn_unused_template) - << /*function*/ 0 << DiagD << DiagRange; + << /*function=*/0 << DiagD << DiagRange; else Diag(DiagD->getLocation(), isa<CXXMethodDecl>(DiagD) ? diag::warn_unused_member_function @@ -1389,10 +1389,10 @@ void Sema::ActOnEndOfTranslationUnit() { } if (DiagD->isReferenced()) { Diag(DiagD->getLocation(), diag::warn_unneeded_internal_decl) - << /*variable*/ 1 << DiagD << DiagRange; + << /*variable=*/1 << DiagD << DiagRange; } else if (DiagD->getDescribedVarTemplate()) { Diag(DiagD->getLocation(), diag::warn_unused_template) - << /*variable*/ 1 << DiagD << DiagRange; + << /*variable=*/1 << DiagD << DiagRange; } else if (DiagD->getType().isConstQualified()) { const SourceManager &SM = SourceMgr; if (SM.getMainFileID() != SM.getFileID(DiagD->getLocation()) || _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits