This project is mirrored from https://github.com/llvm-doe-org/llvm-project.git. Pull mirroring updated .
  1. 23 Jan, 2022 1 commit
  2. 19 Jan, 2022 1 commit
  3. 19 Jul, 2021 1 commit
    • Whisperity's avatar
      [clang-tidy] Add 'readability-suspicious-call-argument' check · 73e4b5cf
      Whisperity authored
      Finds function calls where the call arguments might be provided in an
      incorrect order, based on the comparison (via string metrics) of the
      parameter names and the argument names against each other.
      
      A diagnostic is emitted if an argument name is similar to a *different*
      parameter than the one currently passed to, and it is sufficiently
      dissimilar to the one it **is** passed to currently.
      
      False-positive warnings from this check are useful to indicate bad
      naming convention issues, even if a swap isn't necessary.
      This check does not generate FixIts.
      
      Originally implemented by @varjujan as his Master's Thesis work.
      The check was subsequently taken over by @barancsuk who added type
      conformity checks to silence false positive matches.
      The work by @whisperity involved driving the check's review and fixing
      some more bugs in the process.
      
      Reviewed By: aaron.ballman, alexfh
      
      Differential Revision: http://reviews.llvm.org/D20689
      
      Co-authored-by: default avatarJános Varjú <varjujanos2@gmail.com>
      Co-authored-by: default avatarLilla Barancsuk <barancsuklilla@gmail.com>
      73e4b5cf