diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-01-13 15:52:25 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-01-13 15:52:25 +0000 |
| commit | 26ec8acc847ce0a5905452e987addae726358eed (patch) | |
| tree | 1ac1c6265fe9eaeb852fd1cfd6e7eac0662e2622 /clang/docs/analyzer | |
| parent | 6b35f460ac3d1f4750a7d42cc1ebe1e89e4f5d1e (diff) | |
| download | bcm5719-llvm-26ec8acc847ce0a5905452e987addae726358eed.tar.gz bcm5719-llvm-26ec8acc847ce0a5905452e987addae726358eed.zip | |
Revert "[analyzer] Provide .def-files and visitors for SVal/SymExpr/MemRegion."
This reverts commit r257605.
The test fails on architectures that use unsigned int as size_t.
SymbolManager.h fails with compile errors on some platforms.
llvm-svn: 257608
Diffstat (limited to 'clang/docs/analyzer')
| -rw-r--r-- | clang/docs/analyzer/DebugChecks.rst | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/clang/docs/analyzer/DebugChecks.rst b/clang/docs/analyzer/DebugChecks.rst index bfa3142efbd..771e39fc439 100644 --- a/clang/docs/analyzer/DebugChecks.rst +++ b/clang/docs/analyzer/DebugChecks.rst @@ -162,41 +162,6 @@ ExprInspection checks } while(0); // expected-warning{{SYMBOL DEAD}} -- void clang_analyzer_explain(a single argument of any type); - - This function explains the value of its argument in a human-readable manner - in the warning message. You can make as many overrides of its prototype - in the test code as necessary to explain various integral, pointer, - or even record-type values. - - Example usage:: - - void clang_analyzer_explain(int); - void clang_analyzer_explain(void *); - - void foo(int param, void *ptr) { - clang_analyzer_explain(param); // expected-warning{{argument 'param'}} - if (!ptr) - clang_analyzer_explain(ptr); // expected-warning{{memory address '0'}} - } - -- size_t clang_analyzer_getExtent(void *); - - This function returns the value that represents the extent of a memory region - pointed to by the argument. This value is often difficult to obtain otherwise, - because no valid code that produces this value. However, it may be useful - for testing purposes, to see how well does the analyzer model region extents. - - Example usage:: - - void foo() { - int x, *y; - size_t xs = clang_analyzer_getExtent(&x); - clang_analyzer_explain(xs); // expected-warning{{'4'}} - size_t ys = clang_analyzer_getExtent(&y); - clang_analyzer_explain(ys); // expected-warning{{'8'}} - } - Statistics ========== |

