[RFC] Remove automatic redirects from clang-tidy documentation

This RFC proposes removing all automatic HTML meta-refresh redirects from clang-tidy alias documentation pages.

Motivation

  1. Alias pages may contain useful information/context

An Example here:

Users will not have enough time to read the entire page before they get redirected.

Related discussion in PRs:

  1. Manual navigation cost is minimal

Replacing an automatic redirect with a normal link introduces only one click. For documentation readers, this is an acceptable cost compared with the clarity gained.

Historical blocker and current status

Previously, add_new_check.py used redirect metadata as a heuristic to recognize alias documentation pages.

That blocker has now been removed:

Therefore, redirects are no longer required for tooling purposes. So I think it is time to propose we remove all automatic redirects from clang-tidy documentation pages :slight_smile:

A similar RFC ~4 years ago: RFC: Clang-tidy check documentation for aliases shouldn't redirect when additional information is given

PR for this RFC here: [clang-tidy][Docs] Remove all auto-redirects in documentation. NFC. by zeyi2 · Pull Request #193408 · llvm/llvm-project · GitHub

Sounds good to me, like you say, the original link is just one click away, I think there’s a net benefit in this change.

2 Likes

I support this change.
From user perspective, 5 seconds is too slow for automatic redirect and too fast if one actually want to read text on the page. Have +1 is a small difference but a big step in UX
I personally was surprised (and little annoyed) with these automatic redirects.

2 Likes

Yes, I welcome this change.

The ad-hoc nature of check aliases has been bugging me for some time :)

1 Like