From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6CC3743F47; Mon, 29 Apr 2024 15:04:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB9C94025C; Mon, 29 Apr 2024 15:04:20 +0200 (CEST) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mails.dpdk.org (Postfix) with ESMTP id 791F3400D6 for ; Mon, 29 Apr 2024 15:04:19 +0200 (CEST) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-34cc606b1b1so1519416f8f.3 for ; Mon, 29 Apr 2024 06:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714395859; x=1715000659; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yDwHF8jmYBIyUWGAJ92JDkdEQyJGk+kY9Th09eqOkuw=; b=E664w9xtnAIcZ4o/ad5esaCW7jp/RtcdC5jzZgVMt1on938Y8RiOxFREqm34AHVVNG J3o9U+y0BOupLobeu0tMtUOQiH6kwKicQMEqQnQI5/V6L0FDhRFE3KO1vHTSWb6PF+Cu JgcDQFehnkcHR1gVgGYU5yEajxqK3HOyq8wQLFp0nxprMCT9y9aBQkx6aeFShvxR9Egb y8xzXAy1wTpOGt1Brhf8hIg7kDA/opFN0rAG0DWIIF7hCLPpkURyJyVMuBxemR3T13h7 ubXXqZ2//oRh+lZxGHgf8amkqYJquA6+7azeRRybaka5TcDz30sEvJFtpccNEytUJA3P rT5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714395859; x=1715000659; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yDwHF8jmYBIyUWGAJ92JDkdEQyJGk+kY9Th09eqOkuw=; b=epx3nZBfooQKYYVNq95r8dxXsdVtNZC59qUjpF5Gep+1v7NT0NKuXOgBCZYAiCa2BU /L6XUXTTGSYJZRw7L9AJABHTkJjoEl+Rh7C3zPIDx/EBRsEtLB2ah+8fWzDvCyF9I+fS upy0hbB4p2yliLDdNR4EwBVgk4/9Mhpk6dw+ppgRHOST4bTbMkKwv0tPPfLP2xMPKf0b WsoNyp+j6TIZcAE6U8XxzlBl16Yi97oVRlH90J0JyXXIxI7GfaShMXgAYpO8XN/E2x0J TGbv40kTDHIwgnyucA1Wc6P2udC7iMQXp+OdkuUMAvJPUCbPKjO34oN7NnV1LEwLApQB SYJg== X-Gm-Message-State: AOJu0YxeRHGIhN6HD7ETYpm9o+UNNIOhtpMkPagb83oAGv5lZvpgKvof xNYgLRsPuXJIs5QRZplAHZLq8a1h9B3KMCWTYuKMFicKu2AGUdR2m+5pcBPG X-Google-Smtp-Source: AGHT+IHHqL3giiQMCkWiGB5zIIIWKnIhEMOnN7XfFmqL0u8oJKrA5sAttuEt4pz2KD8ot6Hcg7mNEQ== X-Received: by 2002:a5d:4390:0:b0:34d:17f2:956d with SMTP id i16-20020a5d4390000000b0034d17f2956dmr2137898wrq.66.1714395858109; Mon, 29 Apr 2024 06:04:18 -0700 (PDT) Received: from dcu.otaknetworks.com ([212.156.37.190]) by smtp.gmail.com with ESMTPSA id b8-20020adfe308000000b003436a3cae6dsm29450289wrj.98.2024.04.29.06.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:04:17 -0700 (PDT) From: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@amd.com, =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= Subject: [PATCH] devtools: add .clang-format file Date: Mon, 29 Apr 2024 13:04:14 +0000 Message-Id: <20240429130414.1049310-1-aomeryamac@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org clang-format is a tool to format C/C++/Objective-C code. It can be used to reformat code to match a given coding style, or to ensure that code adheres to a specific coding style. It helps to maintain a consistent coding style across the DPDK codebase. .clang-format file overrides the default style options provided by clang-format and large set of IDEs and text editors support it. Signed-off-by: Abdullah Ömer Yamaç --- .clang-format | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..8ac10c0c09 --- /dev/null +++ b/.clang-format @@ -0,0 +1,30 @@ +--- +# Place opening and closing parentheses on the same line for control statements +BreakBeforeBraces: Custom +BraceWrapping: + AfterFunction: true + AfterControlStatement: false + +# Set maximum line length to 100 characters +ColumnLimit: 100 + +# Use LF (line feed) as the end-of-line character +EndOfLine: lf + +# Specify style options for the entire file +File: + # Insert a final newline character at the end of the file + EndOfFile: true + +IndentWidth: 8 + +# Set tab width to 8 spaces +TabWidth: 8 + +# Use tabs for indentation +UseTab: Always + +# Specify whitespace-related style options +Whitespace: + # Trim trailing whitespace at the end of each line + TrimTrailingWhitespace: true -- 2.34.1