[clang] [WebKit Checkers] Add built-in recognition for standard view types (PR #226350)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 21:04:58 PDT 2026


================
@@ -255,4 +255,32 @@ class Function {
 void callEscaping(const Function &);
 void callNoEscape([[clang::noescape]] const Function &);
 
+namespace std {
+using size_t = decltype(sizeof(0));
+
+namespace ranges {
----------------
rniwa wrote:

Could try adding an inline namespace to make sure it works with actual std::range?

See https://github.com/llvm/llvm-project/commit/9223dc8b71d11798656fc5fbac507118881632bc

https://github.com/llvm/llvm-project/pull/226350


More information about the cfe-commits mailing list