Bug 1617528 - Enable modernize-use-using at review phase r=andi

Differential Revision: https://phabricator.services.mozilla.com/D63819

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2020-02-24 10:05:16 +00:00
Родитель f2ed03b529
Коммит 205bea23c3
3 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -0,0 +1,6 @@
template <typename T>
class Test {
typedef typename T::iterator Iter;
};
typedef int Type;

Просмотреть файл

@ -0,0 +1 @@
[["warning", "use 'using' instead of 'typedef'", "modernize-use-using"], ["warning", "use 'using' instead of 'typedef'", "modernize-use-using"], {"reliability": "high"}]