diff options
author | Paul Hoad <mydeveloperday@gmail.com> | 2019-02-08 17:00:01 +0000 |
---|---|---|
committer | Paul Hoad <mydeveloperday@gmail.com> | 2019-02-08 17:00:01 +0000 |
commit | 6bfd721571a5ad15642e279798186fa79eb2b90e (patch) | |
tree | 47a02a691e55cd77c0e7b836a46e1f6f415f0c46 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 68457c1e52d455afbc1531843470f5fa53016335 (diff) | |
download | llvm-6bfd721571a5ad15642e279798186fa79eb2b90e.zip llvm-6bfd721571a5ad15642e279798186fa79eb2b90e.tar.gz llvm-6bfd721571a5ad15642e279798186fa79eb2b90e.tar.bz2 |
[clang-tidy] Add options to bugprone-argument-comment to add missing argument comments to literals
bugprone-argument-comment only supports identifying those comments which do not match the function parameter name
This revision add 3 options to adding missing argument comments to literals (granularity on type is added to control verbosity of fixit)
```
CheckOptions:
- key: bugprone-argument-comment.CommentBoolLiterals
value: '1'
- key: bugprone-argument-comment.CommentFloatLiterals
value: '1'
- key: bugprone-argument-comment.CommentIntegerLiterals
value: '1'
- key: bugprone-argument-comment.CommentStringLiterals
value: '1'
- key: bugprone-argument-comment.CommentCharacterLiterals
value: '1'
- key: bugprone-argument-comment.CommentUserDefinedLiterals
value: '1'
- key: bugprone-argument-comment.CommentNullPtrs
value: '1'
```
After applying these options, literal arguments will be preceded with /*ParameterName=*/
Reviewers: JonasToth, Eugene.Zelenko, alexfh, hokein, aaron.ballman
Reviewed By: aaron.ballman, Eugene.Zelenko
Differential Revision: https://reviews.llvm.org/D57674
llvm-svn: 353535
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions