[PATCH] D123352: [analyzer] Add FixItHint to `nullability.NullReturnedFromNonnull` and `nullability.NullableReturnedFromNonnull`
Moshe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 8 10:44:00 PDT 2022
MosheBerman updated this revision to Diff 421587.
MosheBerman added a comment.
- Changed the ShowFixIts flag to be per-checker.
- Added support for syntax sugar (`nullable` vs `_Nullable`)
- Pass FixItHint through, so we can do that.
- Changed tests to use `-fdiagnostics-parseable-fixits`.
This doesn't yet account for removing existing `_Nonnull` local annotations, but I want to make sure we can get tests working first and/or determine if a tidy is a better approach.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123352/new/
https://reviews.llvm.org/D123352
Files:
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
clang/test/Analysis/nullability-fixits.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123352.421587.patch
Type: text/x-patch
Size: 13020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220408/7b30eb5b/attachment-0001.bin>
More information about the cfe-commits
mailing list