forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-tidy] support expect no diagnosis test (llvm#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@icloud.com>
- Loading branch information
1 parent
e6b2197
commit f12018e
Showing
3 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// RUN: %check_clang_tidy %s misc-unused-using-decls %t | ||
|
||
// Verify that we don't generate the warnings on header files. | ||
namespace foo { class Foo {}; } | ||
|
||
using foo::Foo; |
6 changes: 0 additions & 6 deletions
6
clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls.hxx
This file was deleted.
Oops, something went wrong.