[Lldb-commits] [lldb] [lldb] Consistently use "null-terminated" across LLDB (NFC) (PR #224801)

Will Hawkins via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 21:59:15 PDT 2026


hawkinsw wrote:

> It appears that both spellings are correct, but "null terminator" is far more common, while "NUL terminator" is technically precise regarding the ASCII character name. Most common in LLDB was "NULL terminated" which is the worst of both worlds. This rallies around "null-terminated".
> 
>     * Adjective → null-terminated
> 
>     * Verb → null-terminate
> 
>     * Nouns left unhyphenated but lowercased: null terminator, null termination

As a pedant and someone who believes that consistency is the mark of sophistication, getting to a spot where LLDB uses this spelling in the same way everywhere will reinforce the perception that it is a tool that can be trusted -- after all, if the developers are consistent and precise in their use of language in the comments (and output), it stands to reason that they would also be consistent and precise in their implementation. Thank you for asking for my review -- I will complete it ASAP!

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


More information about the lldb-commits mailing list