[PATCH] D131277: clang: fix typo availbility
Aarush Bhat via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 5 11:38:15 PDT 2022
sloorush created this revision.
Herald added a reviewer: dang.
Herald added a reviewer: ributzka.
Herald added a project: All.
sloorush requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Fixes #56787. Fixing the spelling of availability. I am unsure about if this change will have any side effects. If someone can help on how to check if it has any side effects, I can test those out as well.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131277
Files:
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
Index: clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
===================================================================
--- clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
+++ clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
@@ -146,19 +146,19 @@
if (Avail.isDefault())
return None;
- Object Availbility;
- serializeObject(Availbility, "introducedVersion",
+ Object Availability;
+ serializeObject(Availability, "introducedVersion",
serializeSemanticVersion(Avail.Introduced));
- serializeObject(Availbility, "deprecatedVersion",
+ serializeObject(Availability, "deprecatedVersion",
serializeSemanticVersion(Avail.Deprecated));
- serializeObject(Availbility, "obsoletedVersion",
+ serializeObject(Availability, "obsoletedVersion",
serializeSemanticVersion(Avail.Obsoleted));
if (Avail.isUnavailable())
- Availbility["isUnconditionallyUnavailable"] = true;
+ Availability["isUnconditionallyUnavailable"] = true;
if (Avail.isUnconditionallyDeprecated())
- Availbility["isUnconditionallyDeprecated"] = true;
+ Availability["isUnconditionallyDeprecated"] = true;
- return Availbility;
+ return Availability;
}
/// Get the language name string for interface language references.
@@ -494,7 +494,7 @@
serializeObject(
Obj, "location",
serializeSourceLocation(Record.Location, /*IncludeFileURI=*/true));
- serializeObject(Obj, "availbility",
+ serializeObject(Obj, "availability",
serializeAvailability(Record.Availability));
serializeObject(Obj, "docComment", serializeDocComment(Record.Comment));
serializeArray(Obj, "declarationFragments",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131277.450339.patch
Type: text/x-patch
Size: 1721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220805/f3954fec/attachment.bin>
More information about the cfe-commits
mailing list