diff options
author | Vedant Kumar <vsk@apple.com> | 2016-06-02 17:19:45 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-06-02 17:19:45 +0000 |
commit | 553a0d62f23f11348365593d3464122155ba01b0 (patch) | |
tree | 7ed702030beaf91f07fbf2c8a539cd992fbf4360 /clang | |
parent | 93c99cf05911af9846ac2482080930ebfde0702a (diff) | |
download | bcm5719-llvm-553a0d62f23f11348365593d3464122155ba01b0.tar.gz bcm5719-llvm-553a0d62f23f11348365593d3464122155ba01b0.zip |
[docs] Add a limitations section to SourceBasedCodeCoverage.rst
llvm-svn: 271544
Diffstat (limited to 'clang')
-rw-r--r-- | clang/docs/SourceBasedCodeCoverage.rst | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/clang/docs/SourceBasedCodeCoverage.rst b/clang/docs/SourceBasedCodeCoverage.rst index 7ab78404e57..0586f2ec846 100644 --- a/clang/docs/SourceBasedCodeCoverage.rst +++ b/clang/docs/SourceBasedCodeCoverage.rst @@ -165,9 +165,9 @@ A few final notes: indexed profiles. To combine profiling data from multiple runs of a program, try e.g: -.. code-block:: console + .. code-block:: console - % llvm-profdata merge -sparse foo1.profraw foo2.profdata -o foo3.profdata + % llvm-profdata merge -sparse foo1.profraw foo2.profdata -o foo3.profdata Format compatibility guarantees =============================== @@ -184,3 +184,20 @@ Format compatibility guarantees * There is a third format in play: the format of the coverage mappings emitted into instrumented binaries. Tools must retain **backwards** compatibility with these formats. These formats are not forwards-compatible. + +Drawbacks and limitations +========================= + +* Code coverage does not handle stack unwinding in the presence of uncaught + exceptions precisely. Consider the following function: + + .. code-block:: cpp + + int f() { + may_throw(); + return 0; + } + + If the function ``may_throw()`` propagates an exception into ``f``, the code + coverage tool may mark the ``return`` statement as executed even though it is + not. |