[all-commits] [llvm/llvm-project] 35bee3: [clang-tidy] prevent generated checks from trigger...

bogser01 via All-commits all-commits at lists.llvm.org
Wed Aug 12 04:45:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 35bee3503f4c33d92434a314e49e3e6f4f7419bc
      https://github.com/llvm/llvm-project/commit/35bee3503f4c33d92434a314e49e3e6f4f7419bc
  Author: Bogdan Serea <bogdan.serea at arm.com>
  Date:   2020-08-12 (Wed, 12 Aug 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/add_new_check.py
    M clang-tools-extra/docs/clang-tidy/Contributing.rst

  Log Message:
  -----------
  [clang-tidy] prevent generated checks from triggering assertions on anonymous functions

Skeleton checks generated by clang-tidy add_check.py cause assertions to fail when run over anonymous functions(lambda functions). This patch introduces an additional check to verify that the target function is not anonymous before calling getName().
The code snippet from the [[ https://clang.llvm.org/extra/clang-tidy/Contributing.html | clang-tidy tutorial  ]]is also updated.

Reviewed By: alexfh, DavidTruby

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




More information about the All-commits mailing list