[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 3/5] [WIP]xen/scripts: add codestyle.py script


  • To: Luca Fancellu <luca.fancellu@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 9 Aug 2023 17:41:57 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ik0Vxf42bfLbG418BKWRN8RzBEH+bI3LVPf5/4jUnGk=; b=b5Leq2PH28Jexj5mP8HBWK+PreMg/aWXiVgxSLynl7iWaE6LiWdZRG9RxkCXFlnlHKyzKQ1uLaDuWOupn70+/d39h7xQwEmFvDcF2YSOPlc37dJDsL4CL3aFqKyRWFDNJjjr4IAi+FX0hbEodzpE9WprKN8amN2iP52s5MQFDHwvYPLM5L/0uV+2urU5/h2709AR19N+i1k6lVpL3YDeZCFxi9O4CZbOsDHunvleh0jYU0p3OyC5EZGViuObdSgGZSH0bvG+gq1GpL4WLyxVbr8GyLhEDPOe/Dp+xL45tdGc3Xidz4TwgxqZTV0E2W6BHpJqIU4/WQv5B0bnwGSPog==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hum0Fvogg6gk4P+QTUGJjJQKt1umYJkYLeOCuz9t0NyI3NTUMXstWYFbhTRdFT4SVL1GwnCscnNBGVKTj15Msa7jGirqc/4qtth+aX0uwhJN0OhQ5osIsnZsbrKaVhF0MopNoIc58E4L+8bhGajGOUjRO+sEv/5sIYTzQaEFvxb4DzcQuPe2GQM4Hj4uL6pXgrTJdtQnw2Fe3yiCgz1KZoo3xe9naFj4bCX4GK28W988N7RKiP2kK2REWiYx9szLEeztYeqS3N7bZz6CYfo6anHYwWkudP56kAlCgGzJDpqwRPjIRpJ7dzenyYns6b828Fgo9Y6Y63J0fIpOhWW4rQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: bertrand.marquis@xxxxxxx, wei.chen@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 09 Aug 2023 15:42:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.07.2023 10:11, Luca Fancellu wrote:
> This script finds every .c and .h file in the xen hypervisor
> codebase, takes the exclusion list from docs/misra, removes the
> file excluded from the list and for the remaining files is
> calling clang-format on them.

I was going to ask what the intended purpose is, but looking at the
script itself I think I see the script can also be passed a set of
file names, so it won't necessarily scan the entire code base.
That'll make it more suitable to also be used in an incremental
fashion (whether that's also useful to scan patches isn't really
clear to me, but I guess that'll require yet more work).

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.