diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-11-19 16:18:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-11-19 16:18:16 +0000 |
commit | aa5f135f8db82b5e5fb1640fd51f8078e0b2d82d (patch) | |
tree | ab00b5c254a28d1098901e7f783eaee4c189d72f /test/Index/code-complete-errors.c | |
parent | 3ffe6293123b8fe59bd9d6ed8e3ec755d68e7fac (diff) |
Extend the libclang diagnostic API to provide information about the
option name, category ID, and category name corresponding to a diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/code-complete-errors.c')
-rw-r--r-- | test/Index/code-complete-errors.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Index/code-complete-errors.c b/test/Index/code-complete-errors.c index 4fe213eca6..51cfb895e2 100644 --- a/test/Index/code-complete-errors.c +++ b/test/Index/code-complete-errors.c @@ -13,11 +13,13 @@ int f(int *ptr1, float *ptr2) { #define expand_to_binary_function(ret, name, parm1, parm2, code) ret name(parm1, parm2) code expand_to_binary_function(int, g, int *ip, float *fp, { -// CHECK: code-complete-errors.c:17:15:{17:12-17:14}{17:18-17:20}: warning: comparison of distinct pointer types ('int *' and 'float *') + // CHECK: code-complete-errors.c:17:12:{17:9-17:24}: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] + if (ip = (float*)fp) ; +// CHECK: code-complete-errors.c:19:15:{19:12-19:14}{19:18-19:20}: warning: comparison of distinct pointer types ('int *' and 'float *') return ip == fp; }) void g() { } -// RUN: c-index-test -code-completion-at=%s:19:12 -pedantic %s 2> %t +// RUN: c-index-test -code-completion-at=%s:21:12 -pedantic %s 2> %t // RUN: FileCheck -check-prefix=CHECK %s < %t |