Skip to content

Commit 123d24e

Browse files
committed
Use JSON code blocks for compilation databases
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 5fdc696 commit 123d24e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/source/compilation-databases.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ to actually run :code:`make`.
6868
executed, allowing us to generate compilation databases without also
6969
building the application. Other tools (like Bear) may require a build.
7070

71-
In this case, it contains::
71+
In this case, it contains:
72+
73+
.. code :: json
7274
7375
[
7476
{
@@ -102,7 +104,9 @@ compilation database for the GPU.
102104

103105
As expected, we can see that the compilation database refers to ``gpu.cpp``
104106
instead of ``cpu.cpp``, and that the ``GPU_OFFLOAD`` macro is defined as part
105-
of each compilation command::
107+
of each compilation command:
108+
109+
.. code :: json
106110
107111
[
108112
{

0 commit comments

Comments
 (0)