From: Vedant Kumar Date: Thu, 2 Jun 2016 01:15:59 +0000 (+0000) Subject: [docs] Use cpp code-blocks where appropriate X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c055111ab20cb853f16c7b4abefdb0f2346547f5;p=clang [docs] Use cpp code-blocks where appropriate git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271461 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/SourceBasedCodeCoverage.rst b/docs/SourceBasedCodeCoverage.rst index 6ff7bffed6..027dd8bac5 100644 --- a/docs/SourceBasedCodeCoverage.rst +++ b/docs/SourceBasedCodeCoverage.rst @@ -35,7 +35,7 @@ The code coverage workflow consists of three main steps: The next few sections work through a complete, copy-'n-paste friendly example based on this program: -.. code-block:: console +.. code-block:: cpp % cat < foo.cc #define BAR(x) ((x) || (x)) @@ -116,7 +116,7 @@ distinct views for ``foo(...)`` and ``foo(...)``. If ``-show-line-counts-or-regions`` is enabled, ``llvm-cov`` displays sub-line region counts (even in macro expansions): -.. code-block:: console +.. code-block:: cpp 20| 1|#define BAR(x) ((x) || (x)) ^20 ^2