This patch contains minor cleanups and style fixes for the nullability checker. NFC.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Why static was removed from getMostNullable() and getNullabilityString()? If these functions are not intended to be used outside this source file, it's good idea to limit their scope. Same should be done for ErrorMessages,
Comment Actions
They are in the anonymous namespace. Maybe it would be cleaner to move them outside of the namespace and preserve the static keyword?
lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp | ||
---|---|---|
99 | This is very asymmetric: "Nullable pointer" and "_Nonnull" type. Also, is "_Nonnull" the only spelling we have? |
Comment Actions
Overall.. LGTM
lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp | ||
---|---|---|
78 | After llvm_unreachable there is often not a return. |
After llvm_unreachable there is often not a return.