This fixes a false positive case where for instance a pointer is obtained and declared using auto.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D103018
[clang-tidy] performance-unnecessary-copy-initialization: Look at the canonical type when checking for aliases. ClosedPublic Authored by flx on May 24 2021, 6:27 AM.
Details Summary This fixes a false positive case where for instance a pointer is obtained and declared using auto.
Diff Detail
Event TimelineHerald added subscribers: jeroen.dobbelaere, xazax.hun. · View Herald TranscriptMay 24 2021, 6:27 AM This revision is now accepted and ready to land.Jun 2 2021, 7:02 AM Closed by commit rGefa4dbc32ca9: [clang-tidy] performance-unnecessary-copy-initialization: Look at the canonical… (authored by flx). · Explain WhyJun 9 2021, 1:37 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 350990 clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization.cpp
|