[all-commits] [llvm/llvm-project] 2e7598: bugprone-argument-comment: ignore mismatches from ...

George Burgess IV via All-commits all-commits at lists.llvm.org
Tue Aug 3 12:56:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e75986a21e543ac9f169a067542eec590339ac0
      https://github.com/llvm/llvm-project/commit/2e75986a21e543ac9f169a067542eec590339ac0
  Author: George Burgess IV <gbiv at google.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
    A clang-tools-extra/test/clang-tidy/checkers/Inputs/bugprone-argument-comment/header-with-decl.h
    A clang-tools-extra/test/clang-tidy/checkers/Inputs/bugprone-argument-comment/system-header-with-decl.h
    M clang-tools-extra/test/clang-tidy/checkers/bugprone-argument-comment.cpp

  Log Message:
  -----------
  bugprone-argument-comment: ignore mismatches from system headers

As of 2a3498e24f97d, we ignore parameter name mismatches for functions
in the `std::` namespace, since those aren't standardized. It seems
reasonable to extend this to all functions which are declared in system
headers, since this lint can be a bit noisy otherwise
(https://bugs.chromium.org/p/chromium/issues/detail?id=1191507).

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




More information about the All-commits mailing list