This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Initialize class member pointers to nullptr.
ClosedPublic

Authored by schittir on Jun 27 2023, 9:39 AM.

Diff Detail

Event Timeline

schittir created this revision.Jun 27 2023, 9:39 AM
Herald added a project: Restricted Project. · View Herald Transcript
schittir requested review of this revision.Jun 27 2023, 9:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 9:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
erichkeane accepted this revision.Jun 28 2023, 7:42 AM

Test failure is clang-format on ASTConsumers.cpp. Fix that please (whatever it wants?) otherwise, LGTM.

This revision is now accepted and ready to land.Jun 28 2023, 7:42 AM
schittir updated this revision to Diff 535459.Jun 28 2023, 10:30 AM

Hope clang-format likes this patch!

tahonermann requested changes to this revision.Jul 6 2023, 8:57 AM
tahonermann added inline comments.
clang/lib/Frontend/ASTConsumers.cpp
188–192

Indentation is still inconsistent here.

I suggest following the indentation used for StackAddrEscapeChecker in clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp; Don't indent the ASTViewer class definition within the unnamed namespace and do indent the class members.

This revision now requires changes to proceed.Jul 6 2023, 8:57 AM
schittir updated this revision to Diff 538851.Jul 10 2023, 3:27 PM
schittir marked an inline comment as done.

Fix format per comments - indent class members and avoid indenting the class definition line.

tahonermann accepted this revision.Jul 11 2023, 7:44 AM

Thanks, Sindhu! This looks good to me!

This revision is now accepted and ready to land.Jul 11 2023, 7:44 AM
This revision was landed with ongoing or failed builds.Jul 12 2023, 11:05 AM
This revision was automatically updated to reflect the committed changes.