[clang-tidy] bugprone-argument-comment: Ignore calls to user-defined literals
authorJoachim Priesner <llvm-project-704996@jspam.de>
Mon, 20 Jun 2022 12:30:02 +0000 (13:30 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Mon, 20 Jun 2022 12:30:30 +0000 (13:30 +0100)
commit541a50e20702a8046fe5076742611354cb6dd0f3
treececc175a7326f75169b23669f07156c659a365ef
parentd93de1acdc46f36a398875a2eda373a2033319b4
[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
clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-argument-comment-literals.cpp