mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Reformat all the LLVMs
Reformatting everything now that we have `llvm` namespaces. I've separated this from the main commit to help manage merge-conflicts and for making it a bit easier to read the mega-patch.
This commit is contained in:
@@ -76,8 +76,8 @@ void Output::endObject() {
|
||||
Stream << "}";
|
||||
}
|
||||
|
||||
bool Output::preflightKey(llvm::StringRef Key, bool Required, bool SameAsDefault,
|
||||
bool &UseDefault, void *&) {
|
||||
bool Output::preflightKey(llvm::StringRef Key, bool Required,
|
||||
bool SameAsDefault, bool &UseDefault, void *&) {
|
||||
UseDefault = false;
|
||||
if (Required || !SameAsDefault) {
|
||||
if (StateStack.back() != ObjectFirstKey) {
|
||||
@@ -235,7 +235,8 @@ llvm::StringRef ScalarReferenceTraits<bool>::stringRef(const bool &Val) {
|
||||
return (Val ? "true" : "false");
|
||||
}
|
||||
|
||||
llvm::StringRef ScalarReferenceTraits<llvm::StringRef>::stringRef(const llvm::StringRef &Val) {
|
||||
llvm::StringRef
|
||||
ScalarReferenceTraits<llvm::StringRef>::stringRef(const llvm::StringRef &Val) {
|
||||
return Val;
|
||||
}
|
||||
|
||||
@@ -244,8 +245,7 @@ ScalarReferenceTraits<std::string>::stringRef(const std::string &Val) {
|
||||
return Val;
|
||||
}
|
||||
|
||||
void ScalarTraits<uint8_t>::output(const uint8_t &Val,
|
||||
llvm::raw_ostream &Out) {
|
||||
void ScalarTraits<uint8_t>::output(const uint8_t &Val, llvm::raw_ostream &Out) {
|
||||
// use temp uin32_t because ostream thinks uint8_t is a character
|
||||
uint32_t Num = Val;
|
||||
Out << Num;
|
||||
@@ -279,18 +279,15 @@ void ScalarTraits<int8_t>::output(const int8_t &Val, llvm::raw_ostream &Out) {
|
||||
Out << Num;
|
||||
}
|
||||
|
||||
void ScalarTraits<int16_t>::output(const int16_t &Val,
|
||||
llvm::raw_ostream &Out) {
|
||||
void ScalarTraits<int16_t>::output(const int16_t &Val, llvm::raw_ostream &Out) {
|
||||
Out << Val;
|
||||
}
|
||||
|
||||
void ScalarTraits<int32_t>::output(const int32_t &Val,
|
||||
llvm::raw_ostream &Out) {
|
||||
void ScalarTraits<int32_t>::output(const int32_t &Val, llvm::raw_ostream &Out) {
|
||||
Out << Val;
|
||||
}
|
||||
|
||||
void ScalarTraits<int64_t>::output(const int64_t &Val,
|
||||
llvm::raw_ostream &Out) {
|
||||
void ScalarTraits<int64_t>::output(const int64_t &Val, llvm::raw_ostream &Out) {
|
||||
Out << Val;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user