[PATCH] D157208: [clang] Fix typos in comments

Mehmet Eymen Ünay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 6 04:03:34 PDT 2023


Eymay created this revision.
Herald added a project: All.
Eymay requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157208

Files:
  clang/include/clang/AST/ASTImporterLookupTable.h
  clang/test/Sema/alloc-align-attr.c


Index: clang/test/Sema/alloc-align-attr.c
===================================================================
--- clang/test/Sema/alloc-align-attr.c
+++ clang/test/Sema/alloc-align-attr.c
@@ -17,7 +17,7 @@
 void *test_no_fn_proto(int x, int y) __attribute__((alloc_align())); // expected-error {{'alloc_align' attribute takes one argument}}
 void *test_no_fn_proto(int x, int y) __attribute__((alloc_align(32, 45, 37))); // expected-error {{'alloc_align' attribute takes one argument}}
 
-void *passthrought(int a) {
+void *passthrough(int a) {
   return test_ptr_alloc_align(a);
 }
 void *align16(void) {
Index: clang/include/clang/AST/ASTImporterLookupTable.h
===================================================================
--- clang/include/clang/AST/ASTImporterLookupTable.h
+++ clang/include/clang/AST/ASTImporterLookupTable.h
@@ -34,7 +34,7 @@
 // Example 2:
 //   // The fwd decl to Foo is not found in the lookupPtr of the DC of the
 //   // translation unit decl.
-//   // Here we could find the node by doing a traverse throught the list of
+//   // Here we could find the node by doing a traverse throughout the list of
 //   // the Decls in the DC, but that would not scale.
 //   struct A { struct Foo *p; };
 // This is a severe problem because the importer decides if it has to create a


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157208.547546.patch
Type: text/x-patch
Size: 1306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230806/ea20d06f/attachment.bin>


More information about the cfe-commits mailing list