Author: Dan McArdle Date: 2024-06-24T10:48:51-04:00 New Revision: 34026207c87116bd8e7fb0a464ea8db947f8239a
URL: https://github.com/llvm/llvm-project/commit/34026207c87116bd8e7fb0a464ea8db947f8239a DIFF: https://github.com/llvm/llvm-project/commit/34026207c87116bd8e7fb0a464ea8db947f8239a.diff LOG: [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 Added: Modified: clang/docs/ThreadSafetyAnalysis.rst Removed: ################################################################################ diff --git a/clang/docs/ThreadSafetyAnalysis.rst b/clang/docs/ThreadSafetyAnalysis.rst index 0ecbebe7a692f..1513719caa464 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 }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits