This revision was automatically updated to reflect the committed changes.
Closed by commit rG87d0aedaa285: [clang-tidy] Add
readability-reference-to-constructed-temporary check (authored by PiotrZSL).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146
xgupta accepted this revision.
xgupta added a comment.
This revision is now accepted and ready to land.
LGTM!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
__
xgupta added a comment.
This LGTM, I will wait for two days before accepting the revision in case other
reviewers might have some more comments/suggestions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
PiotrZSL updated this revision to Diff 544205.
PiotrZSL marked an inline comment as done.
PiotrZSL added a comment.
Rename value to str in doc.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
Files:
cla
PiotrZSL marked 2 inline comments as done.
PiotrZSL added inline comments.
Comment at:
clang-tools-extra/docs/clang-tidy/checks/readability/reference-to-constructed-temporary.rst:18
+
+ const std::string& value("hello");
+
xgupta wrote:
> PiotrZSL wrote:
> > x
xgupta added inline comments.
Comment at:
clang-tools-extra/docs/clang-tidy/checks/readability/reference-to-constructed-temporary.rst:18
+
+ const std::string& value("hello");
+
PiotrZSL wrote:
> xgupta wrote:
> > The below comment is not matching, do you wan
PiotrZSL updated this revision to Diff 544057.
PiotrZSL marked an inline comment as done.
PiotrZSL added a comment.
Update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
Files:
clang-tools-extra/clang-
PiotrZSL marked 4 inline comments as done.
PiotrZSL added inline comments.
Comment at:
clang-tools-extra/docs/clang-tidy/checks/readability/reference-to-constructed-temporary.rst:10
+This construction is often the result of multiple code refactorings or a lack
+of developer know
PiotrZSL added inline comments.
Comment at:
clang-tools-extra/clang-tidy/readability/ReferenceToConstructedTemporaryCheck.cpp:39
+ ID) {
+ NotExtendedByDeclBoundToPredicate Predicate;
+ Predicate.ID = ID;
xgupta wrote:
> Can be written using direc
xgupta added inline comments.
Comment at:
clang-tools-extra/clang-tidy/readability/ReferenceToConstructedTemporaryCheck.cpp:20
+
+struct NotExtendedByDeclBoundToPredicate {
+ bool operator()(const internal::BoundNodesMap &Nodes) const {
A comment might be good
PiotrZSL added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cg
PiotrZSL added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cg
PiotrZSL added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cg
PiotrZSL updated this revision to Diff 513693.
PiotrZSL added a comment.
Ping + Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
Files:
clang-tools-extra/clang-tidy/readability/CMakeLists.txt
cl
PiotrZSL updated this revision to Diff 506399.
PiotrZSL marked 3 inline comments as done.
PiotrZSL added a comment.
Review comment fixes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146368/new/
https://reviews.llvm.org/D146368
Files:
clang-tool
Eugene.Zelenko added inline comments.
Comment at:
clang-tools-extra/clang-tidy/readability/ReferenceToConstructedTemporaryCheck.cpp:22
+ bool operator()(const internal::BoundNodesMap &Nodes) const {
+auto *Other = Nodes.getNode(ID).get();
+if (!Other)
`
PiotrZSL added a comment.
There are 2 issues found in llvm repository:
- llvm/lib/Target/AMDGPU/AMDGPULibFunc.cpp:721:22: warning: reference variable
'S' extends the lifetime of a just-constructed temporary object 'const
StringRef', consider changing reference to value
[readability-reference-t
PiotrZSL created this revision.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Detects code where a te
18 matches
Mail list logo