This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Remove unused argument in getNullability
ClosedPublic

Authored by merrymeerkat on Dec 15 2022, 6:38 AM.

Details

Summary

This change will allow users to call getNullability() without providing an ASTContext.

Diff Detail

Event Timeline

merrymeerkat created this revision.Dec 15 2022, 6:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 6:38 AM
merrymeerkat requested review of this revision.Dec 15 2022, 6:38 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 15 2022, 6:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
gribozavr2 accepted this revision.Dec 15 2022, 12:08 PM
This revision is now accepted and ready to land.Dec 15 2022, 12:08 PM
gribozavr2 added inline comments.Dec 15 2022, 12:09 PM
clang/include/clang/AST/Type.h
2550–2552

Could you add a temporary deprecated overload with the old signature that calls the no-arg function?

Resolving review comments.

Address review comment (add temporary overload)

Fix formatting

This revision was landed with ongoing or failed builds.Dec 16 2022, 3:22 AM
This revision was automatically updated to reflect the committed changes.
barannikov88 added inline comments.
clang/lib/Sema/SemaExpr.cpp
9072

This now gives a warning
clang/lib/Sema/SemaExpr.cpp:9072:27: warning: lambda capture 'Ctx' is not used [-Wunused-lambda-capture]

merrymeerkat added inline comments.Dec 16 2022, 6:22 AM
clang/lib/Sema/SemaExpr.cpp
9072

Thank you for pointing this out! This patch should resolve this: https://reviews.llvm.org/D140211

stefanp added inline comments.
clang/lib/Sema/SemaExpr.cpp
9072

Thank you for addressing this as it is breaking one of our bots:

https://lab.llvm.org/buildbot/#/builders/36/builds/28473