@@ -539,7 +539,7 @@ Optional<SDKNodeDeclType*> SDKNodeDeclType::getSuperclass() const {
539539 return None;
540540}
541541
542- // / Finding the node through all children, including the inheritted ones,
542+ // / Finding the node through all children, including the inherited ones,
543543// / whose printed name matches with the given name.
544544Optional<SDKNodeDecl*>
545545SDKNodeDeclType::lookupChildByPrintedName (StringRef Name) const {
@@ -1343,7 +1343,7 @@ static std::vector<DeclAttrKind> collectDeclAttributes(Decl *D) {
13431343 if (VD->COND && !llvm::is_contained (Results, DeclAttrKind::KIND_NAME)) \
13441344 Results.emplace_back (DeclAttrKind::KIND_NAME);
13451345 // These attributes may be semantically applicable to the current decl but absent from
1346- // the actual AST. Populting them to the nodes ensure we don't have false positives.
1346+ // the actual AST. Populating them to the nodes ensure we don't have false positives.
13471347 HANDLE (isObjC (), DAK_ObjC)
13481348 HANDLE (isFinal (), DAK_Final)
13491349 HANDLE (isDynamic (), DAK_Dynamic)
@@ -2262,14 +2262,14 @@ class ConstExtractor: public ASTWalker {
22622262 allConsts.emplace_back (file, kind, offset, length, Value, ReferencedD);
22632263 }
22642264
2265- void record (Expr *E, Expr *ValueProvider, StringRef ReferecedD = " " ) {
2265+ void record (Expr *E, Expr *ValueProvider, StringRef ReferencedD = " " ) {
22662266 std::string content;
22672267 llvm::raw_string_ostream os (content);
22682268 ValueProvider->printConstExprValue (&os, nullptr );
22692269 assert (!content.empty ());
22702270 auto buffered = SCtx.buffer (content);
22712271 switch (ValueProvider->getKind ()) {
2272- #define CASE (X ) case ExprKind::X: record(E, ConstKind::X, buffered, ReferecedD ); break ;
2272+ #define CASE (X ) case ExprKind::X: record(E, ConstKind::X, buffered, ReferencedD ); break ;
22732273 CASE (StringLiteral)
22742274 CASE (IntegerLiteral)
22752275 CASE (FloatLiteral)
@@ -2397,10 +2397,10 @@ swift::ide::api::getEmptySDKNodeRoot(SDKContext &SDKCtx) {
23972397
23982398SDKNodeRoot*
23992399swift::ide::api::getSDKNodeRoot (SDKContext &SDKCtx,
2400- const CompilerInvocation &InitInvok ,
2400+ const CompilerInvocation &InitInvoke ,
24012401 const llvm::StringSet<> &ModuleNames) {
24022402 CheckerOptions Opts = SDKCtx.getOpts ();
2403- CompilerInvocation Invocation (InitInvok );
2403+ CompilerInvocation Invocation (InitInvoke );
24042404
24052405 CompilerInstance &CI = SDKCtx.newCompilerInstance ();
24062406 // Display diagnostics to stderr.
@@ -2467,11 +2467,11 @@ void swift::ide::api::dumpSDKRoot(SDKNodeRoot *Root, StringRef OutputFile) {
24672467 dumpSDKRoot (Root, PayLoad (), OutputFile);
24682468}
24692469
2470- int swift::ide::api::dumpSDKContent (const CompilerInvocation &InitInvok ,
2470+ int swift::ide::api::dumpSDKContent (const CompilerInvocation &InitInvoke ,
24712471 const llvm::StringSet<> &ModuleNames,
24722472 StringRef OutputFile, CheckerOptions Opts) {
24732473 SDKContext SDKCtx (Opts);
2474- SDKNodeRoot *Root = getSDKNodeRoot (SDKCtx, InitInvok , ModuleNames);
2474+ SDKNodeRoot *Root = getSDKNodeRoot (SDKCtx, InitInvoke , ModuleNames);
24752475 if (!Root)
24762476 return 1 ;
24772477 dumpSDKRoot (Root, OutputFile);
0 commit comments