Skip to content

Fix misspellings #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/LibraryEvolution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Closed Enums
By default, a library owner may add new cases to a public enum between releases
without breaking binary compatibility. As with structs, this results in a fair
amount of indirection when dealing with enum values, in order to potentially
accomodate new values.
accommodate new values.

.. note::

Expand Down
2 changes: 1 addition & 1 deletion docs/proposals/rejected/Constructors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ the leading ``init`` keyword, including (e.g.) methods starting with
tagged as being in the ``init`` family in Objective-C (via the
``objc_method_family`` attribute in Clang). We consider these cases to
be rare enough that we don't want to pessimize the conventional
``init`` methods to accomodate them.
``init`` methods to accommodate them.

Designated Initializers
~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/TypeRefinementContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class TypeRefinementContext {
Children.push_back(Child);
}

/// Returns the inner-most TypeRefinementContext descendent of this context
/// Returns the inner-most TypeRefinementContext descendant of this context
/// for the given source location.
TypeRefinementContext *findMostRefinedSubContext(SourceLoc Loc,
SourceManager &SM);
Expand Down
4 changes: 2 additions & 2 deletions include/swift/IDE/SyntaxModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ enum class SyntaxNodeKind : uint8_t {
CommentMarker,
CommentURL,
TypeId,
/// #if/#else/#endif occurence.
/// #if/#else/#endif occurrence.
BuildConfigKeyword,
/// An identifier in a #if condition.
BuildConfigId,
/// Any occurence of '@<attribute-name>' anywhere.
/// Any occurrence of '@<attribute-name>' anywhere.
AttributeId,
/// A "resolved/active" attribute. Mis-applied attributes will be AttributeId.
AttributeBuiltin,
Expand Down
4 changes: 2 additions & 2 deletions include/swift/SILAnalysis/LoopRegionAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,9 @@ class LoopRegionFunctionInfo {
LoopTy *L,
PostOrderFunctionInfo *PI);

/// Recursively visit all the descendents of Parent. If there is a non-local
/// Recursively visit all the descendants of Parent. If there is a non-local
/// successor edge path that points to a dead edge in Parent, mark the
/// descendent non-local successor edge as dead.
/// descendant non-local successor edge as dead.
void propagateLivenessDownNonLocalSuccessorEdges(LoopRegion *Parent);
};

Expand Down
2 changes: 1 addition & 1 deletion lib/SIL/Projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ ProjectionTree::computeUsesAndLiveness(SILValue Base) {

// If this node is live due to a non projection user, propagate down its
// liveness to its children and its children with an empty value to the
// worklist so we propagate liveness down to any further descendents.
// worklist so we propagate liveness down to any further descendants.
if (Node->IsLive) {
DEBUG(llvm::dbgs() << "Node Is Live. Marking Children Live!\n");
for (unsigned ChildIdx : Node->ChildProjections) {
Expand Down
4 changes: 2 additions & 2 deletions lib/SILAnalysis/LoopRegionAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ initializeFunctionRegion(iterator_range<LoopInfoTy::iterator> SubLoops) {
initializeLoopFunctionRegion(getRegion(F), SubLoops);
}

/// Recursively visit all the descendents of Parent. If there is a non-local
/// Recursively visit all the descendants of Parent. If there is a non-local
/// successor edge path that points to a dead edge in Parent, mark the
/// descendent non-local successor edge as dead.
/// descendant non-local successor edge as dead.
void LoopRegionFunctionInfo::
propagateLivenessDownNonLocalSuccessorEdges(LoopRegion *Parent) {
llvm::SmallVector<LoopRegion *, 4> Worklist;
Expand Down
4 changes: 2 additions & 2 deletions lib/SILPasses/Scalar/SILSROA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ bool SROAMemoryUseAnalyzer::analyze() {
}

// If the use is a struct_element_addr, add it to the worklist so we check
// if it or one of its descendents escape.
// if it or one of its descendants escape.
if (auto *ASI = dyn_cast<StructElementAddrInst>(User)) {
DEBUG(llvm::dbgs() << " Found a struct subprojection!\n");
ExtractInsts.push_back(ASI);
continue;
}

// If the use is a tuple_element_addr, add it to the worklist so we check
// if it or one of its descendents escape.
// if it or one of its descendants escape.
if (auto *TSI = dyn_cast<TupleElementAddrInst>(User)) {
DEBUG(llvm::dbgs() << " Found a tuple subprojection!\n");
ExtractInsts.push_back(TSI);
Expand Down
2 changes: 1 addition & 1 deletion test/1_stdlib/NSStringAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ NSStringAPIs.test("getBytes(_:maxLength:usedLength:encoding:options:range:remain
NSStringAPIs.test("getCString(_:maxLength:encoding:)") {
var s = "abc あかさた"
if true {
// The largest buffer that can not accomodate the string plus null terminator.
// The largest buffer that can not accommodate the string plus null terminator.
let bufferLength = 16
var buffer = Array(
count: bufferLength, repeatedValue: CChar(bitPattern: 0xff))
Expand Down
2 changes: 1 addition & 1 deletion test/SourceKit/SourceDocInfo/cursor_callargs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ c1.meth(0, passFloat: 0)
// RUN: %sourcekitd-test -req=cursor -pos=7:14 %s -- %s | FileCheck -check-prefix=CHECK-METH %s
// CHECK-METH: source.lang.swift.ref.function.method.instance (4:8-4:38)

// Make sure we don't highlight all "meth" occurences when pointing at "withFloat:".
// Make sure we don't highlight all "meth" occurrences when pointing at "withFloat:".
// RUN: %sourcekitd-test -req=related-idents -pos=7:15 %s -- %s | FileCheck -check-prefix=CHECK-IDS %s
// CHECK-IDS: START RANGES
// CHECK-IDS-NEXT: END RANGES