diff options
| author | Dan McArdle <dmcardle@google.com> | 2024-06-24 10:48:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 10:48:51 -0400 |
| commit | 34026207c87116bd8e7fb0a464ea8db947f8239a (patch) | |
| tree | d44a852fa34a39cd5e1d3870bc4a9bc071ef71e7 /clang/docs/ThreadSafetyAnalysis.rst | |
| parent | 6258b5f610d51d37a79456d660b12c2d8e98500b (diff) | |
[clang][ThreadSafety] Fix code block syntax in ThreadSafetyAnalysis.rst (#96494)
Without a newline, documentation was failing to build with this error:
Warning, treated as error:
/home/runner/work/llvm-project/llvm-project/clang-build/tools/clang/docs/ThreadSafetyAnalysis.rst:466:Error
in "code-block" directive:
maximum 1 argument(s) allowed, 10 supplied.
Issue #92408
Diffstat (limited to 'clang/docs/ThreadSafetyAnalysis.rst')
| -rw-r--r-- | clang/docs/ThreadSafetyAnalysis.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/docs/ThreadSafetyAnalysis.rst b/clang/docs/ThreadSafetyAnalysis.rst index 0ecbebe7a692..1513719caa46 100644 --- a/clang/docs/ThreadSafetyAnalysis.rst +++ b/clang/docs/ThreadSafetyAnalysis.rst @@ -464,6 +464,7 @@ on success and ``LockNotAcquired`` on failure, the analysis may fail to detect access to guarded data without holding the mutex because they are both non-zero. .. code-block:: c++ + // *** Beware: this code demonstrates incorrect usage. *** enum TrylockResult { LockAcquired = 1, LockNotAcquired = 2 }; |
