[all-commits] [llvm/llvm-project] 541a50: [clang-tidy] bugprone-argument-comment: Ignore cal...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Jun 20 05:30:47 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 541a50e20702a8046fe5076742611354cb6dd0f3
  Author: Joachim Priesner <llvm-project-704996 at jspam.de>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone-argument-comment-literals.cpp

  Log Message:
  [clang-tidy] bugprone-argument-comment: Ignore calls to user-defined literals

Without this change, code such as "f(/*param=*/1_op)" will check the
comment twice, once for the parameter of f (correct) and once for
the parameter of operator""_op (likely incorrect). The change removes
only the second check.

Reviewed By: njames93, LegalizeAdulthood

Differential Revision: https://reviews.llvm.org/D125885

More information about the All-commits mailing list