diff options
| author | Roland McGrath <mcgrathr@google.com> | 2025-10-30 11:49:22 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-30 11:49:22 -0700 | 
| commit | a24a7548b845eba93d8c03079f8c6fcd923306a6 (patch) | |
| tree | 5a758d407345afea55bb6352b05467576f2d8a48 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 25afea74985d32999a896b24c74d6eab313cd0ea (diff) | |
| download | llvm-a24a7548b845eba93d8c03079f8c6fcd923306a6.zip llvm-a24a7548b845eba93d8c03079f8c6fcd923306a6.tar.gz llvm-a24a7548b845eba93d8c03079f8c6fcd923306a6.tar.bz2 | |
[libc][hdrgen] Sort identifiers with leading underscores specially (#165745)
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.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
