[PATCH] D75152: Fix typo

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 17:57:46 PST 2020


njames93 created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75152

Files:
  clang-tools-extra/clang-tidy/add_new_check.py


Index: clang-tools-extra/clang-tidy/add_new_check.py
===================================================================
--- clang-tools-extra/clang-tidy/add_new_check.py
+++ clang-tools-extra/clang-tidy/add_new_check.py
@@ -129,7 +129,7 @@
     HeaderFound = False
     CheckAdded = False
     CheckFqName = Module + '-' + CheckName
-    CHeckDecl = ('    CheckFactories.registerCheck<' + CheckNameCamel
+    CheckDecl = ('    CheckFactories.registerCheck<' + CheckNameCamel
                  + '>(\n        "' + CheckFqName + '");\n')
 
     Lines = iter(Lines)
@@ -150,7 +150,7 @@
         if not CheckAdded:
           if Line.strip() == '}':
             CheckAdded = True
-            F.write(CHeckDecl)
+            F.write(CheckDecl)
           else:
             Match = re.search(r'registerCheck<(.*)> *\( *(?:"([^"]*)")?', Line)
             PrevLine = None
@@ -166,7 +166,7 @@
                   CurrentCheckName = Match.group(1)
               if CurrentCheckName > CheckFqName:
                 CheckAdded = True
-                F.write(CHeckDecl)
+                F.write(CheckDecl)
               if PrevLine:
                 F.write(PrevLine)
         F.write(Line)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75152.246612.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200226/79d53d21/attachment.bin>


More information about the cfe-commits mailing list