Summary:
Cleanup some code by using appropriate APIs.
Some coding style cleanups.
There is no behavior changes.
- Function `IncludeSorter::CreateFixIt` can be replaced by `FixItHint::CreateReplacement`.
- Function `cleanPath` is a wrapper for `llvm::sys::path::remove_dots`.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D20279
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@269656 91177308-0d34-0410-b5e6-96231b3b80d8
Summary:
Move code shared between UnnecessaryCopyInitialization and ForRangeCopyCheck into utilities files.
Add more test cases for UnnecessaryCopyInitialization and disable fixes inside of macros.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D17488
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@262781 91177308-0d34-0410-b5e6-96231b3b80d8