This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Debug string for value kinds.
ClosedPublic

Authored by wyt on Aug 15 2022, 7:34 AM.

Diff Detail

Event Timeline

wyt created this revision.Aug 15 2022, 7:34 AM
Herald added a project: Restricted Project. · View Herald Transcript
wyt requested review of this revision.Aug 15 2022, 7:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2022, 7:34 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xazax.hun added inline comments.Aug 15 2022, 8:24 AM
clang/lib/Analysis/FlowSensitive/DebugSupport.cpp
35

I think all of these debugString functions could return a llvm::StringRef or an std::string_view.

wyt updated this revision to Diff 452968.Aug 16 2022, 5:35 AM

Use llvm::StringRef for returning static strings.

wyt marked an inline comment as done.
gribozavr2 accepted this revision.Aug 16 2022, 7:43 AM
This revision is now accepted and ready to land.Aug 16 2022, 7:43 AM
xazax.hun accepted this revision.Aug 16 2022, 8:40 AM
This revision was automatically updated to reflect the committed changes.