Commit Graph

5 Commits

Author SHA1 Message Date
Kim Gräsman 890a3150d7 Format all return statements on their own line
This is the unadorned result of:

    git grep -En "\w.*return .*;" -- ':!tests/*' | grep-format

Having return statements on their own line makes it easier to set
breakpoints in most debuggers.

No functional change.
2023-01-07 12:27:16 +01:00
Kim Gräsman 9926eb2192 Use [[noreturn]] instead of LLVM_ATTRIBUTE_NORETURN
A recent change to LLVM removed LLVM_ATTRIBUTE_NORETURN in favor of plain C++11
[[noreturn]]. Since we require C++14 to build these days, just assume that
the [[noreturn]] attribute is available.
2021-08-06 13:52:19 +02:00
Kim Grasman fefce689c4 Remove portability shim for snprintf
Microsoft's _snprintf was never a drop-in replacement for snprintf (it
could leave resulting string un-terminated if it wouldn't fit).

As of Visual Studio 2015, the Microsoft C runtime ships with an actual
C99-compliant snprintf. LLVM requires VS2017, so we can just assume it
exists.
2020-11-08 20:20:07 +01:00
Kim Grasman b0240cb89b Fix up license header for iwyu_port.h 2019-12-27 21:52:37 +01:00
Kim Grasman 7c2ec8f05b Rename port.h -> iwyu_port.h 2019-12-26 16:12:02 +01:00
Renamed from port.h (Browse further)