mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1612274 - Add checker readability-qualified-auto
for clang-tidy
static-analysis. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70481 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
36b3aabb21
commit
8731a55350
@ -247,6 +247,8 @@ clang_checkers:
|
||||
reliability: high
|
||||
- name: readability-non-const-parameter
|
||||
reliability: high
|
||||
- name: readability-qualified-auto
|
||||
reliability: high
|
||||
- name: readability-redundant-control-flow
|
||||
reliability: high
|
||||
- name: readability-redundant-preprocessor
|
||||
|
6
tools/clang-tidy/test/readability-qualified-auto.cpp
Normal file
6
tools/clang-tidy/test/readability-qualified-auto.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
typedef int *MyPtr;
|
||||
MyPtr getPtr();
|
||||
|
||||
void foo() {
|
||||
auto TdNakedPtr = getPtr();
|
||||
}
|
1
tools/clang-tidy/test/readability-qualified-auto.json
Normal file
1
tools/clang-tidy/test/readability-qualified-auto.json
Normal file
@ -0,0 +1 @@
|
||||
[["warning", "'auto TdNakedPtr' can be declared as 'auto *TdNakedPtr'", "readability-qualified-auto"], {"reliability": "high"}]
|
Loading…
Reference in New Issue
Block a user