[clang][NFC] Various NFCs in CheckDefaultArgumentVisitor
authorBruno Ricci <riccibrun@gmail.com>
Thu, 11 Jun 2020 10:53:47 +0000 (11:53 +0100)
committerBruno Ricci <riccibrun@gmail.com>
Thu, 11 Jun 2020 11:19:45 +0000 (12:19 +0100)
commit0418005c0e2f280f0cdab9ad7b5a1a7bd03d9c10
treec4ce277aae0fca5eb16967ad6d9a2ce3697b4316
parent9ed452f3701ec225b9e3296d5ab244fec6699fdf
[clang][NFC] Various NFCs in CheckDefaultArgumentVisitor

Before the next patches do the following NFCs:
  - Make it a const visitor; CheckDefaultArgumentVisitor should
    really not modify the visited nodes.

  - clang-format

  - Take a reference to Sema instead of a pointer and pass it
    as the first argument to the constructor. This is for
    consistency with the other similar visitors.

  - Use range for loops when appropriate as per the style guide.

  - Use `const auto *" when appropriate as per the style guide.
clang/lib/Sema/SemaDeclCXX.cpp