Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
a06b75ba
Commit
a06b75ba
authored
9 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm obsolete STYLE
parent
81199cbe
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
pub/lib/STYLE
+0
-35
0 additions, 35 deletions
pub/lib/STYLE
with
0 additions
and
35 deletions
pub/lib/STYLE
deleted
100644 → 0
+
0
−
35
View file @
81199cbe
== checks ==
mylint.py --counting=detailed `lssrc` > ~/h
== include's ==
- Block 1: Standard software
- C standard library: cstdlib cstdio cstring cmath *.h sys/*.h
- C++ standard library: iostream fstream string vector map algorithm
- boost
- GSL
- Block 2: Our own libs
- trivia readplus yamlfreeze lmfit kww
- Block 3: Current project
== function arguments and "const" qualifier ==
- never use "const" with simple data types
double f( double x ); // and not ( const double x )
- prefer passing complex data types (including string) by reference:
double sum( const vector<int>& row );
- generally, when passing arguments by & reference: not putting "const"
means that mutation of the argument is intended
- omitting "const" has the side effect, that the function cannot be
called with a constructor in place of the argument:
out = sum( vector<int>(7) ); // only allowed when arg is declared const
- "const" with pointer arguments is poorly understood (even less so with
shared_ptr)
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