aboutsummaryrefslogtreecommitdiff
path: root/tools/c-arcmt-test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-07-11 20:15:00 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-07-11 20:15:00 +0000
commit97c337c2bdf3ec53073c7e7dd656aa0dd37ee409 (patch)
tree471ef7707880d41ed7e9482c2d244e0f7e842857 /tools/c-arcmt-test
parent2b30dcfb769e4015f8d41c5c9a4e723ff3d522a0 (diff)
[arcmt] Move the remapping functions to clang-c/Index.h and change 'arcmt_' prefix to 'clang_'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-arcmt-test')
-rw-r--r--tools/c-arcmt-test/c-arcmt-test.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/c-arcmt-test/c-arcmt-test.c b/tools/c-arcmt-test/c-arcmt-test.c
index 927292d039..5522b33e23 100644
--- a/tools/c-arcmt-test/c-arcmt-test.c
+++ b/tools/c-arcmt-test/c-arcmt-test.c
@@ -1,6 +1,6 @@
/* c-arcmt-test.c */
-#include "clang-c/ARCMigrate.h"
+#include "clang-c/Index.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -10,19 +10,18 @@
#endif
static int print_remappings(const char *path) {
- CMTRemap remap;
+ CXRemapping remap;
unsigned i, N;
CXString origFname;
CXString transFname;
- remap = arcmt_getRemappings(path);
+ remap = clang_getRemappings(path);
if (!remap)
return 1;
- N = arcmt_remap_getNumFiles(remap);
+ N = clang_remap_getNumFiles(remap);
for (i = 0; i != N; ++i) {
- origFname = arcmt_remap_getOriginalFile(remap, i);
- transFname = arcmt_remap_getTransformedFile(remap, i);
+ clang_remap_getFilenames(remap, i, &origFname, &transFname);
fprintf(stdout, "%s\n", clang_getCString(origFname));
fprintf(stdout, "%s\n", clang_getCString(transFname));
@@ -31,7 +30,7 @@ static int print_remappings(const char *path) {
clang_disposeString(transFname);
}
- arcmt_remap_dispose(remap);
+ clang_remap_dispose(remap);
return 0;
}