Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
0ea2023a
Commit
0ea2023a
authored
8 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
codingStyleGuide: Improved formatting
Resolves bug-report
http://bugs.openfoam.org/view.php?id=2194
parent
18155802
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/codingStyleGuide.org
+2
-3
2 additions, 3 deletions
doc/codingStyleGuide.org
with
2 additions
and
3 deletions
doc/codingStyleGuide.org
+
2
−
3
View file @
0ea2023a
...
@@ -332,8 +332,8 @@
...
@@ -332,8 +332,8 @@
a < b, a > b, a >= b, a <= b
a < b, a > b, a >= b, a <= b
a || b, a && b
a || b, a && b
#+end_src
#+end_src
+ Splitting formulae over several lines
+ Splitting formulae over several lines:
Split and indent as per "splitting long lines at an ="
Split and indent as per "splitting long lines at an ="
with the operator on the lower line. Align operator so that first
with the operator on the lower line. Align operator so that first
variable, function or bracket on the next line is 4 spaces indented i.e.
variable, function or bracket on the next line is 4 spaces indented i.e.
...
@@ -344,7 +344,6 @@
...
@@ -344,7 +344,6 @@
*(k + t);
*(k + t);
#+end_src
#+end_src
This is sometimes more legible when surrounded by extra parentheses:
This is sometimes more legible when surrounded by extra parentheses:
#+begin_src C++
#+begin_src C++
variableName =
variableName =
(
(
...
@@ -353,8 +352,8 @@
...
@@ -353,8 +352,8 @@
*(k + t)
*(k + t)
);
);
#+end_src
#+end_src
+ Splitting logical tests over several lines
+ Splitting logical tests over several lines:
outdent the operator so that the next variable to test is aligned with
outdent the operator so that the next variable to test is aligned with
the four space indentation, i.e.
the four space indentation, i.e.
#+begin_src C++
#+begin_src C++
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment