mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
This makes the sorting behavior more uniform: functions and macros are always sorted (separately), not only when merging. This changes the sort order used for functions and other things sorted by their symbol names. Symbols are sorted alphabetically without regard to leading underscores, and then for identifiers that differ only in the number of leading underscores, the fewer underscores the earlier in the sort order. For the functions declared in a generated header, adjacent names with and without underscores will be grouped together without blank lines. This is implemented by factoring the name field, equality, and sorting support out of the various entity classes into a new common superclass (hdrgen.Symbol). This uncovered YAML's requirement to quote the string "NULL" to avoid pyyaml parsing it as None (equivalent to Javascript null) rather than a string.
325 lines
6.4 KiB
YAML
325 lines
6.4 KiB
YAML
header: string.h
|
|
standards:
|
|
- stdc
|
|
macros:
|
|
- macro_name: "NULL"
|
|
macro_header: null-macro.h
|
|
types:
|
|
- type_name: locale_t
|
|
- type_name: size_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: memccpy
|
|
standards:
|
|
- posix
|
|
return_type: void *
|
|
arguments:
|
|
- type: void *__restrict
|
|
- type: const void *__restrict
|
|
- type: int
|
|
- type: size_t
|
|
- name: memchr
|
|
standards:
|
|
- stdc
|
|
return_type: void *
|
|
arguments:
|
|
- type: const void *
|
|
- type: int
|
|
- type: size_t
|
|
- name: memcmp
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const void *
|
|
- type: const void *
|
|
- type: size_t
|
|
- name: memcpy
|
|
standards:
|
|
- stdc
|
|
return_type: void *
|
|
arguments:
|
|
- type: void *__restrict
|
|
- type: const void *__restrict
|
|
- type: size_t
|
|
- name: memmem
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: void *
|
|
arguments:
|
|
- type: const void *
|
|
- type: size_t
|
|
- type: const void *
|
|
- type: size_t
|
|
- name: memmove
|
|
standards:
|
|
- stdc
|
|
return_type: void *
|
|
arguments:
|
|
- type: void *
|
|
- type: const void *
|
|
- type: size_t
|
|
- name: mempcpy
|
|
standards:
|
|
- posix
|
|
return_type: void *
|
|
arguments:
|
|
- type: void *__restrict
|
|
- type: const void *__restrict
|
|
- type: size_t
|
|
- name: memrchr
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: void *
|
|
arguments:
|
|
- type: const void *
|
|
- type: int
|
|
- type: size_t
|
|
- name: memset
|
|
standards:
|
|
- stdc
|
|
return_type: void *
|
|
arguments:
|
|
- type: void *
|
|
- type: int
|
|
- type: size_t
|
|
- name: memset_explicit
|
|
standards:
|
|
- stdc
|
|
return_type: void *
|
|
arguments:
|
|
- type: void *
|
|
- type: int
|
|
- type: size_t
|
|
- name: stpcpy
|
|
standards:
|
|
- posix
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- name: stpncpy
|
|
standards:
|
|
- posix
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: size_t
|
|
- name: strcasestr
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strcat
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- name: strchr
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: int
|
|
- name: strchrnul
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: int
|
|
- name: strcmp
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strcoll
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strcoll_l
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- type: locale_t
|
|
- name: strcpy
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- name: strcspn
|
|
standards:
|
|
- stdc
|
|
return_type: size_t
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strdup
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- name: strerror
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: int
|
|
- name: strerror_r
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: char *
|
|
arguments:
|
|
- type: int
|
|
- type: char *
|
|
- type: size_t
|
|
- name: strlcat
|
|
standards:
|
|
- BSDExtensions
|
|
return_type: size_t
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: size_t
|
|
- name: strlcpy
|
|
standards:
|
|
- BSDExtensions
|
|
return_type: size_t
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: size_t
|
|
- name: strlen
|
|
standards:
|
|
- stdc
|
|
return_type: size_t
|
|
arguments:
|
|
- type: const char *
|
|
- name: strncat
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *
|
|
- type: const char *
|
|
- type: size_t
|
|
- name: strncmp
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- type: size_t
|
|
- name: strncpy
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: size_t
|
|
- name: strndup
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: size_t
|
|
- name: strnlen
|
|
standards:
|
|
- posix
|
|
return_type: size_t
|
|
arguments:
|
|
- type: const char *
|
|
- type: size_t
|
|
- name: strpbrk
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strrchr
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: int
|
|
- name: strsep
|
|
standards:
|
|
- BSDExtensions
|
|
return_type: char *
|
|
arguments:
|
|
- type: char **__restrict
|
|
- type: const char *__restrict
|
|
- name: strsignal
|
|
standards:
|
|
- posix
|
|
return_type: char *
|
|
arguments:
|
|
- type: int
|
|
- name: strspn
|
|
standards:
|
|
- stdc
|
|
return_type: size_t
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strstr
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: const char *
|
|
- type: const char *
|
|
- name: strtok
|
|
standards:
|
|
- stdc
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- name: strtok_r
|
|
standards:
|
|
- posix
|
|
return_type: char *
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: char ** __restrict
|
|
- name: strxfrm
|
|
standards:
|
|
- stdc
|
|
return_type: size_t
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: size_t
|
|
- name: strxfrm_l
|
|
standards:
|
|
- stdc
|
|
return_type: size_t
|
|
arguments:
|
|
- type: char *__restrict
|
|
- type: const char *__restrict
|
|
- type: size_t
|
|
- type: locale_t
|