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

--HG--
extra : moz-landing-system : lando
  • Loading branch information
sylvestre committed Feb 24, 2020
1 parent f2ed03b commit 205bea2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/clang-tidy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ clang_checkers:
reliability: low
# Too noisy because of the way how we implement NS_IMETHOD. See Bug 1420366.
publish: !!bool no
- name: modernize-use-using
reliability: high
- name: mozilla-*
reliability: high
- name: performance-faster-string-find
Expand Down
6 changes: 6 additions & 0 deletions tools/clang-tidy/test/modernize-use-using.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
template <typename T>
class Test {
typedef typename T::iterator Iter;
};
typedef int Type;

1 change: 1 addition & 0 deletions tools/clang-tidy/test/modernize-use-using.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[["warning", "use 'using' instead of 'typedef'", "modernize-use-using"], ["warning", "use 'using' instead of 'typedef'", "modernize-use-using"], {"reliability": "high"}]

0 comments on commit 205bea2

Please sign in to comment.