[PATCH] cpp11-migrate: Write header replacements to disk
Tareq A. Siraj
tareq.a.siraj at intel.com
Mon Aug 12 14:18:46 PDT 2013
Hi revane, Sarcasm, arielbernal,
Another attempt to commit r187204 after windows related problems has
been fixed. Note that changes to this patch reflect the current behavior
of cpp11-migrate.
Header replacements are now written to disk in YAML format for an external tool
to merge. A unique file will be created in the same directory as the header
with all replacements that came from a source file that included the header
file. The YAML file will have:
- Name of the header file
- Name of the source file that included the header file
- Transform ID that generated the replacement
- Offset
- Length
- Replacement text
Any tool reading these replacements should read them using the
HeaderChangeDocument struct.
http://llvm-reviews.chandlerc.com/D1369
Files:
cpp11-migrate/Core/FileOverrides.cpp
cpp11-migrate/Core/FileOverrides.h
cpp11-migrate/Core/Reformatting.cpp
cpp11-migrate/Core/ReplacementsYaml.h
cpp11-migrate/Core/Transform.cpp
cpp11-migrate/tool/Cpp11Migrate.cpp
test/cpp11-migrate/HeaderReplacements/common.cpp
test/cpp11-migrate/HeaderReplacements/common.h
test/cpp11-migrate/HeaderReplacements/common.h.yaml
test/cpp11-migrate/HeaderReplacements/main.cpp
unittests/cpp11-migrate/CMakeLists.txt
unittests/cpp11-migrate/FileOverridesTest.cpp
unittests/cpp11-migrate/IncludeExcludeTest.cpp
unittests/cpp11-migrate/ReformattingTest.cpp
unittests/cpp11-migrate/ReplacementsYamlTest.cpp
unittests/cpp11-migrate/Utility.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1369.1.patch
Type: text/x-patch
Size: 28542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130812/f8f0f9f2/attachment.bin>
More information about the cfe-commits
mailing list