CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

automatic code formatting tool for OF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2025, 07:01
Red face automatic code formatting tool for OF
  #1
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 60
Rep Power: 16
tkeskita is on a distinguished road
Hi,

is there some automatic code formatting tool which could be used to reformat the C++ source code files according to the OpenFOAM coding standards?

I wonder if one of the basic ClangFormat styles might already be close to the OF style, to be used as a basis? https://clang.llvm.org/docs/ClangFor...l#basedonstyle

BR,
Tuomo
tkeskita is offline   Reply With Quote

Old   January 11, 2025, 04:44
Default
  #2
Member
 
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 65
Rep Power: 10
amirhosseintaran is on a distinguished road
Quote:
Originally Posted by tkeskita View Post
Hi,

is there some automatic code formatting tool which could be used to reformat the C++ source code files according to the OpenFOAM coding standards?

I wonder if one of the basic ClangFormat styles might already be close to the OF style, to be used as a basis? https://clang.llvm.org/docs/ClangFor...l#basedonstyle

BR,
Tuomo
Hi BR,

I am only aware of this, which is applicable to both foundation and ESI versions.

https://openfoam.org/dev/coding-style-guide/


Regards,
amirhosseintaran is offline   Reply With Quote

Reply

Tags
automatic, code, formatting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Original OpenFOAM author(s)? roenby OpenFOAM 21 July 14, 2021 12:08
No different caculation speed between serial and openMP code? AnhDL Main CFD Forum 4 May 16, 2020 04:17
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 14:34
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 11:44
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 10:20


All times are GMT -4. The time now is 17:25.