[PATCH] cpp11-migrate: Write header replacements to disk

Tareq A. Siraj tareq.a.siraj at intel.com
Mon Jul 15 12:38:14 PDT 2013


tareqsiraj added you to the CC list for the revision "cpp11-migrate: Write header replacements to disk".

Hi revane, Sarcasm, arielbernal,

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:
 - Transform ID that generated the replacement
 - Offset
 - Length
 - Replacement text

Any tool reading these replacements should read them using the
MigratorReplacement struct.

Note: This is a preliminary patch to get the review process started. I am adding unit tests for the final patch.

http://llvm-reviews.chandlerc.com/D1142

Files:
  cpp11-migrate/Core/FileOverrides.cpp
  cpp11-migrate/Core/FileOverrides.h
  cpp11-migrate/Core/Replacement.h
  cpp11-migrate/Core/ReplacementsYaml.h
  cpp11-migrate/Core/Transform.cpp
  cpp11-migrate/tool/Cpp11Migrate.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1142.1.patch
Type: text/x-patch
Size: 10284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130715/780abf2b/attachment.bin>


More information about the cfe-commits mailing list