commit | cbaea41827ac1be9065998555f4747865a9e50a2 | [log] [tgz] |
---|---|---|
author | Yuanfang Chen <yuanfang.chen@sony.com> | Wed Aug 21 20:59:16 2019 +0000 |
committer | Yuanfang Chen <yuanfang.chen@sony.com> | Wed Aug 21 20:59:16 2019 +0000 |
tree | 384fb74995e17a8a38b9d729e2d22c79cb2a5cb5 | |
parent | 2ecf82e40d5e89f93d691ae4c3adc44b5c7b8eaa [diff] |
Fix documentation build after rL369568 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@369578 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/docs/clang-tidy/checks/bugprone-dynamic-static-initializers.rst b/docs/clang-tidy/checks/bugprone-dynamic-static-initializers.rst index 3da36ce..b4d5f75 100644 --- a/docs/clang-tidy/checks/bugprone-dynamic-static-initializers.rst +++ b/docs/clang-tidy/checks/bugprone-dynamic-static-initializers.rst
@@ -17,11 +17,11 @@ Consider the following code: --- code-block:: c +.. code-block:: c -int foo() { - static int k = bar(); - return k; -} + int foo() { + static int k = bar(); + return k; + } When synchronization of static initialization is disabled, if two threads both call `foo` for the first time, there is the possibility that `k` will be double initialized, creating a race condition.