Index: clang-tools-extra/docs/clang-tidy/checks/misc-misplaced-const.rst =================================================================== --- clang-tools-extra/docs/clang-tidy/checks/misc-misplaced-const.rst +++ clang-tools-extra/docs/clang-tidy/checks/misc-misplaced-const.rst @@ -13,10 +13,9 @@ .. code-block:: c++ - typedef int *int_ptr; - void f(const int_ptr ptr) { + using int_ptr = int*; + void f(int_ptr const ptr) { *ptr = 0; // potentially quite unexpectedly the int can be modified here - ptr = 0; // does not compile } The check does not diagnose when the underlying ``typedef``/``using`` type is a