19 Commits

Author SHA1 Message Date
Baozeng Ding
a62759105c Add support for int *p = 0; *p; at AST level. 2013-09-10 11:43:57 +02:00
Baozeng Ding
a46498e831 Adapt the test suite to the new warnings produced.
Disable the indirect calls. We don't support them yet on AST level.
2013-09-09 15:38:51 +02:00
Baozeng Ding
715e222957 Add support for null deref checks in indirect calls. 2013-08-21 11:34:51 +02:00
Baozeng Ding
cc877954ae Add support for mangling: How we can check regular C++ functions.
Indirect calls are still an issue.
2013-08-21 11:14:55 +02:00
Vassil Vassilev
f3ccb10135 Spell correctly expected-warning and not warning expected. Call a function with non null and check the expected result. 2013-08-16 22:52:52 +02:00
Baozeng Ding
eca58d0ffc Add support for the cases where the pointer is not char*. 2013-08-16 19:50:53 +02:00
Vassil Vassilev
76c598f0ff Uncomment commented lines, that fail on Mac. 2013-08-15 23:17:51 +02:00
Vassil Vassilev
452e98bf46 Add a reproducer in the test of a current issue for Baozeng to look into.
This happens probably because we don't iterate over the redecl chains and thus
we don't pickup the attribute.
2013-08-15 23:17:51 +02:00
Vassil Vassilev
eeb99d7030 Add failing test for Baozeng to fine tune the NullDeref impl. 2013-08-15 22:26:57 +02:00
Vassil Vassilev
694eb20c36 Mark back as non-failing. There is still some issue on Mac that need to be investigated. 2013-08-15 10:15:55 +02:00
Vassil Vassilev
914c09228e Mark test as XFAIL. Follow the cling naming convention. 2013-08-15 09:49:59 +02:00
Baozeng Ding
4f70eafbfd Add a simple test testing the new functionality. 2013-08-14 21:05:55 +02:00
Vassil Vassilev
ecf7e03df8 Not using real SourceLocation is bad, especially in -verify mode. In the value printer synthesis we have real source location of the expression that we are replacing. Use its begin and end location. This will allow us to remove the XFAIL-ed test that now passes. 2013-08-08 22:55:54 +02:00
Vassil Vassilev
6c734dd78c Only if I could spell C++ :) 2013-08-08 16:59:55 +02:00
Vassil Vassilev
a0850bbf4c Add another expected to pass construct for null deref. 2013-08-08 15:01:54 +02:00
Vassil Vassilev
66514e8d09 Add an XFAIL-ing test, as TODO for Baozeng. 2013-08-07 17:58:56 +02:00
Vassil Vassilev
9bb1eae342 We check whether there is terminal attached and if not (as the case of the testsuite) we don't need to answer the warning. 2013-08-07 17:58:56 +02:00
Baozeng Ding
8e17b5e93e Report the null deref warning through diagnostic engine. 2013-07-27 20:43:03 +02:00
Vassil Vassilev
5b2655d120 Add testcases. 2013-07-21 15:16:57 +02:00