[clang-tools-extra] [clang-tidy] Fix link to CERT C Coding Standard ERR33-C (PR #205086)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 22 04:45:18 PDT 2026


https://github.com/lucaslive974 created https://github.com/llvm/llvm-project/pull/205086

This patch updates the outdated CMU wiki link in the CERT ERR33-C documentation. 

The old link currently returns a `301 Moved Permanently` redirecting to the new GitHub Pages location. This patch updates the source file to point directly to the new destination to prevent future link rot.

FIXES #200277 
<details>
<summary><b>Diagnosis & Curl Output</b></summary>

```http
$ curl -IL [https://wiki.sei.cmu.edu/confluence/display/c/ERR33-C.+Detect+and+handle+standard+library+errors](https://wiki.sei.cmu.edu/confluence/display/c/ERR33-C.+Detect+and+handle+standard+library+errors)

HTTP/1.0 301 Moved Permanently
Location: [https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/error-handling-err/err33-c](https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/error-handling-err/err33-c)
Server: BigIP
Connection: close
Content-Length: 0

HTTP/2 301 
server: GitHub.com
location: [https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/error-handling-err/err33-c/](https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/error-handling-err/err33-c/)

HTTP/2 200 
server: GitHub.com
content-type: text/html; charset=utf-8

>From f3d34efacda4e11a75011414a92c03475dae7b45 Mon Sep 17 00:00:00 2001
From: Lucas <lucasribeirolima974 at gmail.com>
Date: Mon, 22 Jun 2026 08:39:35 -0300
Subject: [PATCH] [clang-tidy] Fix link to CERT C Coding Standard ERR33-C

Update the reference link for CERT C Coding Standard rule ERR33-C.
---
 clang-tools-extra/docs/clang-tidy/checks/cert/err33-c.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert/err33-c.rst b/clang-tools-extra/docs/clang-tidy/checks/cert/err33-c.rst
index 75da669c0a2b3..f1b665f01edc3 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/cert/err33-c.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/cert/err33-c.rst
@@ -194,7 +194,7 @@ disabled by setting `AllowCastToVoid` option to `false`.
 
 The check corresponds to a part of CERT C Coding Standard rule `ERR33-C.
 Detect and handle standard library errors
-<https://wiki.sei.cmu.edu/confluence/display/c/ERR33-C.+Detect+and+handle+standard+library+errors>`_.
+<https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/error-handling-err/err33-c>`_.
 The list of checked functions is taken from the rule, with following exception:
 
 * The check can not differentiate if a function is called with ``NULL``



More information about the cfe-commits mailing list