hanchenye-llvm-project/clang-tools-extra
Tareq A. Siraj e0a03c3c64 cpp11-migrate: FileOverrides/Transform refactoring.
This commit include the following changes:
 - SourceOverrides is now a class
   - it simplifies the usage for the Transform class, since now the
     replacements can be applied directly to the file overrides with
     SourceOverrides::applyReplacements().
   - it contains a method applyRewrites() which was previously named
     collectResults() in Transform.cpp. The method has been "optimized"
     a bit to re-use the allocated buffer (std::string::clear() is called).
   - since the class has some logic it's now unit tested
 - Now FileOverrides is a class (not a std::map typedef) and store pointers
   to the SourceOverrides. The reason is that the SourceOverrides can't be
   copied anymore (which was already something to avoid since it's can be a
   quite large object).

Author: Guillaume Papin <guillaume.papin@epitech.eu>

Differential Revision: http://llvm-reviews.chandlerc.com/D1122

llvm-svn: 186161
2013-07-12 14:36:20 +00:00
..
cpp11-migrate cpp11-migrate: FileOverrides/Transform refactoring. 2013-07-12 14:36:20 +00:00
docs cpp11-migrate: Add Replace-AutoPtr Transform 2013-07-03 13:21:24 +00:00
modularize Ran clang-format on Modularize.cpp to get a baseline for future changes. 2013-06-27 18:52:23 +00:00
remove-cstr-calls Add a dependency on LLVM's option library for clang-tools-extra 2013-06-14 17:34:04 +00:00
test Add 'not' to commands that are expected to fail. 2013-07-04 16:28:28 +00:00
tool-template Add a dependency on LLVM's option library for clang-tools-extra 2013-06-14 17:34:04 +00:00
unittests cpp11-migrate: FileOverrides/Transform refactoring. 2013-07-12 14:36:20 +00:00
.arcconfig
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
LICENSE.TXT
Makefile
README.txt

README.txt

//===----------------------------------------------------------------------===//
// Clang Tools repository
//===----------------------------------------------------------------------===//

Welcome to the repository of extra Clang Tools.  This repository holds tools
that are developed as part of the LLVM compiler infrastructure project and the
Clang frontend.  These tools are kept in a separate "extra" repository to
allow lighter weight checkouts of the core Clang codebase.

This repository is only intended to be checked out inside of a full LLVM+Clang
tree, and in the 'tools/extra' subdirectory of the Clang checkout.

All discussion regarding Clang, Clang-based tools, and code in this repository
should be held using the standard Clang mailing lists:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Code review for this tree should take place on the standard Clang patch and
commit lists:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

If you find a bug in these tools, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/