forked from OSchip/llvm-project
c-index-test: Pass appropriate client data.
llvm-svn: 96317
This commit is contained in:
parent
1951192213
commit
ce79bc9c7a
|
@ -41,7 +41,7 @@ static void PrintExtent(FILE *out, unsigned begin_line, unsigned begin_column,
|
||||||
static unsigned CreateTranslationUnit(CXIndex Idx, const char *file,
|
static unsigned CreateTranslationUnit(CXIndex Idx, const char *file,
|
||||||
CXTranslationUnit *TU) {
|
CXTranslationUnit *TU) {
|
||||||
|
|
||||||
*TU = clang_createTranslationUnit(Idx, file, PrintDiagnosticCallback, 0);
|
*TU = clang_createTranslationUnit(Idx, file, PrintDiagnosticCallback, stderr);
|
||||||
if (!TU) {
|
if (!TU) {
|
||||||
fprintf(stderr, "Unable to load translation unit from '%s'!\n", file);
|
fprintf(stderr, "Unable to load translation unit from '%s'!\n", file);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue