[all-commits] [llvm/llvm-project] e06b5a: [libc] Give more functions restrict qualifiers (NF...
AtariDreams via All-commits
all-commits at lists.llvm.org
Mon Jan 15 10:12:21 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e06b5a2435f2e4d422dfcf099ba5e4b9b2573fa9
https://github.com/llvm/llvm-project/commit/e06b5a2435f2e4d422dfcf099ba5e4b9b2573fa9
Author: AtariDreams <83477269+AtariDreams at users.noreply.github.com>
Date: 2024-01-15 (Mon, 15 Jan 2024)
Changed paths:
M clang/lib/Headers/llvm_libc_wrappers/string.h
M clang/test/Analysis/Inputs/system-header-simulator-for-simple-stream.h
M clang/test/Analysis/Inputs/system-header-simulator.h
M clang/test/Analysis/bsd-string.c
M clang/test/Analysis/string.c
M libc/spec/bsd_ext.td
M libc/src/string/strsep.cpp
M libc/src/string/strsep.h
Log Message:
-----------
[libc] Give more functions restrict qualifiers (NFC) (#78061)
strsep, strtok_r, strlcpy, and strlcat take restricted pointers as
parameters.
Add the restrict qualifiers to them.
Sources:
https://man7.org/linux/man-pages/man3/strsep.3.html
https://man7.org/linux/man-pages/man3/strtok_r.3.html
https://man.freebsd.org/cgi/man.cgi?strlcpy
More information about the All-commits
mailing list