~thomas-voss/location-service/generalize-glue-code-for-agps-operation

« back to all changes in this revision

Viewing changes to astyle-config

  • Committer: thomas-voss
  • Date: 2015-02-02 15:05:32 UTC
  • mto: This revision was merged to the branch mainline in revision 196.
  • Revision ID: thomas.voss@canonical.com-20150202150532-9jm6l7ctsey92zka
Add documentation for debugging, hacking and debugging the location service.
Pull manual testing instructions over from the wiki.
Add tools for formatting the source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Options for formatting code with astyle.
 
2
#
 
3
# This helps to make code match the style guide.
 
4
 
5
# Use like this:
 
6
 
7
#     astyle --options=astyle-config mfile.h myfile.cpp
 
8
 
9
# Occasionally, astyle does something silly (particularly with lambdas), so it's
 
10
# still necessary to scan the changes for things that are wrong.
 
11
# But, for most files, it does a good job.
 
12
 
13
# Please consider using this before checking code in for review. Code reviews shouldn't
 
14
# have to deal with layout issues, they are just a distraction. It's better to be able
 
15
# to focus on semantics in a code review, with style issues out of the way.
 
16
 
 
17
--formatted
 
18
--style=allman
 
19
--min-conditional-indent=2
 
20
--indent-switches
 
21
--max-instatement-indent=120
 
22
--pad-header
 
23
--align-pointer=type
 
24
--align-reference=type
 
25
--add-brackets
 
26
--convert-tabs
 
27
--close-templates
 
28
--max-code-length=120
 
29
 
 
30
# --pad-oper
 
31
#
 
32
# Commented out for now. It changes
 
33
#
 
34
#     for (int i=0; i<10; ++i)
 
35
# to
 
36
#     for (int i = 0; i < 10; ++i)
 
37
#
 
38
# Unfortunately, it also messes with rvalue references:
 
39
#
 
40
#     ResourcePtr& operator=(ResourcePtr&& r);
 
41
#
 
42
# becomes:
 
43
#
 
44
#     ResourcePtr& operator=(ResourcePtr && r);