Skip to content

Commit

Permalink
Bug 1617528 - Enable modernize-use-using at review phase r=andi
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D63819

UltraBlame original commit: 00737a9c524cac923b7e6bedd93e88e763bbc73c
  • Loading branch information
marco-c committed Feb 25, 2020
1 parent 544a00f commit 9869400
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/clang-tidy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,17 @@ no
-
name
:
modernize
-
use
-
using
reliability
:
high
-
name
:
mozilla
-
*
Expand Down
22 changes: 22 additions & 0 deletions tools/clang-tidy/test/modernize-use-using.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
template
<
typename
T
>
class
Test
{
typedef
typename
T
:
:
iterator
Iter
;
}
;
typedef
int
Type
;
57 changes: 57 additions & 0 deletions tools/clang-tidy/test/modernize-use-using.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
[
"
warning
"
"
use
'
using
'
instead
of
'
typedef
'
"
"
modernize
-
use
-
using
"
]
[
"
warning
"
"
use
'
using
'
instead
of
'
typedef
'
"
"
modernize
-
use
-
using
"
]
{
"
reliability
"
:
"
high
"
}
]

0 comments on commit 9869400

Please sign in to comment.