[clang] [DRAFT][analyzer][NFC] clang-format our folders (PR #82599)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 08:38:04 PST 2024


================
@@ -49,54 +50,44 @@ const char *IsARPBind = "isautoreleasepoolbind";
 
 class ObjCAutoreleaseWriteChecker : public Checker<check::ASTCodeBody> {
 public:
-  void checkASTCodeBody(const Decl *D,
-                        AnalysisManager &AM,
+  void checkASTCodeBody(const Decl *D, AnalysisManager &AM,
                         BugReporter &BR) const;
+
 private:
   std::vector<std::string> SelectorsWithAutoreleasingPool = {
       // Common to NSArray,  NSSet, NSOrderedSet
-      "enumerateObjectsUsingBlock:",
-      "enumerateObjectsWithOptions:usingBlock:",
+      "enumerateObjectsUsingBlock:", "enumerateObjectsWithOptions:usingBlock:",
 
       // Common to NSArray and NSOrderedSet
       "enumerateObjectsAtIndexes:options:usingBlock:",
       "indexOfObjectAtIndexes:options:passingTest:",
       "indexesOfObjectsAtIndexes:options:passingTest:",
-      "indexOfObjectPassingTest:",
-      "indexOfObjectWithOptions:passingTest:",
+      "indexOfObjectPassingTest:", "indexOfObjectWithOptions:passingTest:",
       "indexesOfObjectsPassingTest:",
       "indexesOfObjectsWithOptions:passingTest:",
 
       // NSDictionary
       "enumerateKeysAndObjectsUsingBlock:",
       "enumerateKeysAndObjectsWithOptions:usingBlock:",
-      "keysOfEntriesPassingTest:",
-      "keysOfEntriesWithOptions:passingTest:",
+      "keysOfEntriesPassingTest:", "keysOfEntriesWithOptions:passingTest:",
 
       // NSSet
-      "objectsPassingTest:",
-      "objectsWithOptions:passingTest:",
+      "objectsPassingTest:", "objectsWithOptions:passingTest:",
       "enumerateIndexPathsWithOptions:usingBlock:",
 
       // NSIndexSet
-      "enumerateIndexesWithOptions:usingBlock:",
-      "enumerateIndexesUsingBlock:",
+      "enumerateIndexesWithOptions:usingBlock:", "enumerateIndexesUsingBlock:",
       "enumerateIndexesInRange:options:usingBlock:",
-      "enumerateRangesUsingBlock:",
-      "enumerateRangesWithOptions:usingBlock:",
-      "enumerateRangesInRange:options:usingBlock:",
-      "indexPassingTest:",
-      "indexesPassingTest:",
-      "indexWithOptions:passingTest:",
-      "indexesWithOptions:passingTest:",
-      "indexInRange:options:passingTest:",
-      "indexesInRange:options:passingTest:"
-  };
+      "enumerateRangesUsingBlock:", "enumerateRangesWithOptions:usingBlock:",
+      "enumerateRangesInRange:options:usingBlock:", "indexPassingTest:",
+      "indexesPassingTest:", "indexWithOptions:passingTest:",
+      "indexesWithOptions:passingTest:", "indexInRange:options:passingTest:",
+      "indexesInRange:options:passingTest:"};
----------------
steakhal wrote:

Bad formatting for the `SelectorsWithAutoreleasingPool` member. 

https://github.com/llvm/llvm-project/pull/82599


More information about the cfe-commits mailing list