]> granicus.if.org Git - clang/commit
Adding Replacement serialization support
authorEdwin Vane <edwin.vane@intel.com>
Tue, 20 Aug 2013 19:07:21 +0000 (19:07 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Tue, 20 Aug 2013 19:07:21 +0000 (19:07 +0000)
commit5321e94281f4944d05ab5f90208933afc1e7cae8
tree27d336726fab9aceb1e6d8ca85e56f8928e1877d
parentc84ed54f9786638c228fdc9b4db9920fa676d48d
Adding Replacement serialization support

Adding a new data structure for storing the Replacements generated for a single
translation unit. Structure contains a vector of Replacements as well a field
indicating the main source file of the translation unit. An optional 'Context'
field allows for tools to provide any information they want about the context
the Replacements were generated in. This context is printed, for example, when
detecting conflicts during Replacement deduplication.

YAML serialization for this data structure is implemented in this patch. Tests
are included.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188818 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Refactoring.h
include/clang/Tooling/ReplacementsYaml.h [new file with mode: 0644]
unittests/Tooling/CMakeLists.txt
unittests/Tooling/ReplacementsYamlTest.cpp [new file with mode: 0644]