]> granicus.if.org Git - clang/commitdiff
[libclang] When printing the diagnostic print it with a new line.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Oct 2011 15:13:14 +0000 (15:13 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Oct 2011 15:13:14 +0000 (15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142354 91177308-0d34-0410-b5e6-96231b3b80d8

tools/c-index-test/c-index-test.c

index 5ebad6fedb5b3936808b99e371e6267009423602..fb83d20cbec4d4af7ce29836ac3d19b6f69f229f 100644 (file)
@@ -1620,7 +1620,7 @@ static void index_diagnostic(CXClientData client_data,
 
   str = clang_formatDiagnostic(diag, clang_defaultDiagnosticDisplayOptions());
   cstr = clang_getCString(str);
-  printf("diagnostic: %s", cstr);
+  printf("diagnostic: %s\n", cstr);
   clang_disposeString(str);  
 }