================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits