[all-commits] [llvm/llvm-project] 0a5322: Give NullabilityKind a printing operator<<
Sam McCall via All-commits
all-commits at lists.llvm.org
Thu May 4 14:25:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0a532207b8696d81e46017f444bd2257347f129b
https://github.com/llvm/llvm-project/commit/0a532207b8696d81e46017f444bd2257347f129b
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2023-05-04 (Thu, 04 May 2023)
Changed paths:
M clang/include/clang/Basic/Specifiers.h
M clang/lib/Basic/Diagnostic.cpp
M clang/lib/Basic/IdentifierTable.cpp
M clang/test/SemaObjC/nullable-result.m
Log Message:
-----------
Give NullabilityKind a printing operator<<
This is more useful for debug/test than getNullabilitySpelling:
- default form has uglifying underscores
- non-default form crashes on NullableResult
- both return unhelpfully verbose strings for Unspecified
- operator<< works with gtest, formatv, etc
Differential Revision: https://reviews.llvm.org/D149650
More information about the All-commits
mailing list