Exactly what it says on the tin!
find clang/ -type f -exec sed -i 's/std::shared_ptr<PathDiagnosticPiece>/PathDiagnosticPieceRef/g' {} \; git diff -U3 --no-color HEAD^ | clang-format-diff -p1 -i
Paths
| Differential D65381
[analyzer][NFC] Refactoring BugReporter.cpp P3.: std::shared_pointer<PathDiagnosticPiece> -> PathDiagnosticPieceRef ClosedPublic Authored by Szelethus on Jul 28 2019, 2:51 PM.
Details Summary Exactly what it says on the tin! find clang/ -type f -exec sed -i 's/std::shared_ptr<PathDiagnosticPiece>/PathDiagnosticPieceRef/g' {} \; git diff -U3 --no-color HEAD^ | clang-format-diff -p1 -i
Diff Detail Event TimelineHerald added subscribers: cfe-commits, gamesh411, dkrupp and 5 others. · View Herald TranscriptJul 28 2019, 2:51 PM Comment Actions
All you need to know about the state of C++ refactoring tools.
This revision is now accepted and ready to land.Jul 29 2019, 6:18 PM Comment Actions Just wondering, did you check if we actually need shared ownership for this type? If not, do not waste your time checking for now :)
Szelethus marked 5 inline comments as done. Szelethus added inline comments.
Closed by commit rL368717: [analyzer][NFC] Refactoring BugReporter.cpp P3.: std… (authored by Szelethus). · Explain WhyAug 13 2019, 9:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 212807 clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp
clang/lib/StaticAnalyzer/Checkers/DynamicTypeChecker.cpp
clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h
clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.cpp
clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
clang/lib/StaticAnalyzer/Checkers/Taint.h
clang/lib/StaticAnalyzer/Checkers/Taint.cpp
clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp
clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
|
If you already touch these parts maybe you could capitalize some variable names.