Since local static variables can outlive other local variables exclude them from the unnecessary copy initialization check.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D15822
Use hasLocalStorage() to identify unnecessary copy initializations to exclude static local variables. ClosedPublic Authored by flx on Dec 30 2015, 2:52 AM.
Details Summary Since local static variables can outlive other local variables exclude them from the unnecessary copy initialization check.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Dec 30 2015, 2:57 AM Closed by commit rL256636: [clang-tidy] Use hasLocalStorage() to identify unnecessary copy… (authored by alexfh). · Explain WhyDec 30 2015, 3:39 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 43777 clang-tidy/performance/UnnecessaryCopyInitialization.cpp
test/clang-tidy/performance-unnecessary-copy-initialization.cpp
|