summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/code-complete-errors.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-18 19:08:21 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-18 19:08:21 +0000
commit06dcf0375b6e4f6c5c63e79b4c644c96c8c2ce7a (patch)
treecc72d985de786cd9e77f0e973857cca2de1839b1 /clang/test/Index/code-complete-errors.c
parentfcb3db7d689d6f91e240f60714c5bc334fe34896 (diff)
downloadbcm5719-llvm-06dcf0375b6e4f6c5c63e79b4c644c96c8c2ce7a.tar.gz
bcm5719-llvm-06dcf0375b6e4f6c5c63e79b4c644c96c8c2ce7a.zip
Introduce CIndex API functions for displaying a diagnostic, with some
knobs to control formatting. Eventually, I'd like to merge the implementation of this code with the TextDiagnosticPrinter, so that it's easy for CIndex clients to produce beautiful diagnostics like the clang compiler does. Use this new function to display diagnostics within c-index-test. llvm-svn: 96603
Diffstat (limited to 'clang/test/Index/code-complete-errors.c')
-rw-r--r--clang/test/Index/code-complete-errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/code-complete-errors.c b/clang/test/Index/code-complete-errors.c
index 520a8c87df2..29c2a861986 100644
--- a/clang/test/Index/code-complete-errors.c
+++ b/clang/test/Index/code-complete-errors.c
@@ -7,7 +7,7 @@ struct s {
struct s s0 = { y: 5 }; // CHECK: code-complete-errors.c:7:20: warning: use of GNU old-style field designator extension
// CHECK: FIX-IT: Replace [7:17 - 7:19] with ".y = "
int f(int *ptr1, float *ptr2) {
- return ptr1 != ptr2; // CHECK: code-complete-errors.c:10:15:[10:10 - 10:14][10:18 - 10:22]: warning: comparison of distinct pointer types ('int *' and 'float *')
+ return ptr1 != ptr2; // CHECK: code-complete-errors.c:10:15:{10:10-10:14}{10:18-10:22}: warning: comparison of distinct pointer types ('int *' and 'float *')
}
void g() { }
OpenPOWER on IntegriCloud