[all-commits] [llvm/llvm-project] f12018: [clang-tidy] support expect no diagnosis test (#91...

Congcong Cai via All-commits all-commits at lists.llvm.org
Mon May 13 18:49:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f12018eba11f8d4b74cf67dbc416c429c870a5f4
      https://github.com/llvm/llvm-project/commit/f12018eba11f8d4b74cf67dbc416c429c870a5f4
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-05-14 (Tue, 14 May 2024)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/check_clang_tidy.py
    A clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls.hpp
    R clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls.hxx

  Log Message:
  -----------
  [clang-tidy] support expect no diagnosis test (#91293)

When someone wants to declare a test case without any diagnosis.
check-clang-tidy will failed with error message

```
CHECK-FIXES, CHECK-MESSAGES or CHECK-NOTES not found in the input
```

This PR want to check there are no diagnosis from clang-tidy when
CHECK-FIXES, CHECK-MESSAGES or CHECK-NOTES are not found.

It also changes the extension of a test case. `hxx` is not a valid test
case extension and won't be tested.

---------

Co-authored-by: Danny Mösch <danny.moesch at icloud.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list