summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/explain-svals.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2016-11-30 18:26:43 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2016-11-30 18:26:43 +0000
commit7b75e3266c868ea6f9fa0783944e0f43d5ced2a3 (patch)
tree6b176f106f0e6c63c30cdb140727deeec7847fbc /clang/test/Analysis/explain-svals.cpp
parent4ae38347924cd685a1e0c5259ee7476d61484326 (diff)
downloadbcm5719-llvm-7b75e3266c868ea6f9fa0783944e0f43d5ced2a3.tar.gz
bcm5719-llvm-7b75e3266c868ea6f9fa0783944e0f43d5ced2a3.zip
[analyzer] SValExplainer: Support ObjC ivars and __block variables.
Additionally, explain the difference between normal and heap-based symbolic regions. llvm-svn: 288260
Diffstat (limited to 'clang/test/Analysis/explain-svals.cpp')
-rw-r--r--clang/test/Analysis/explain-svals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/explain-svals.cpp b/clang/test/Analysis/explain-svals.cpp
index c0ed74914ed..ef2ebc244a6 100644
--- a/clang/test/Analysis/explain-svals.cpp
+++ b/clang/test/Analysis/explain-svals.cpp
@@ -47,7 +47,7 @@ void test_2(char *ptr, int ext) {
clang_analyzer_explain(glob_ptr); // expected-warning-re{{{{^value derived from \(symbol of type 'int' conjured at statement 'conjure\(\)'\) for global variable 'glob_ptr'$}}}}
clang_analyzer_explain(clang_analyzer_getExtent(ptr)); // expected-warning-re{{{{^extent of pointee of argument 'ptr'$}}}}
int *x = new int[ext];
- clang_analyzer_explain(x); // expected-warning-re{{{{^pointer to element of type 'int' with index 0 of pointee of symbol of type 'int \*' conjured at statement 'new int \[ext\]'$}}}}
+ clang_analyzer_explain(x); // expected-warning-re{{{{^pointer to element of type 'int' with index 0 of heap segment that starts at symbol of type 'int \*' conjured at statement 'new int \[ext\]'$}}}}
// Sic! What gets computed is the extent of the element-region.
clang_analyzer_explain(clang_analyzer_getExtent(x)); // expected-warning-re{{{{^signed 32-bit integer '4'$}}}}
delete[] x;
OpenPOWER on IntegriCloud