You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Create a github account if you haven't already, and fork the project
8
+
* Create a new branch, using a branch name that gives an idea of what the changes are about
9
+
* One topic per commit; a number of small commits are better than one big one
10
+
* Do not introduce whitespace changes! (**Windows users:**`git config --global core.autocrlf true`)
11
+
* Encouraged but not enforced: each commit should stand alone, in the sense that the code should compile and run at that point.
12
+
* One major topic per pull request. Commits that fix small things (typos, formatting) are perfectly acceptable in a PR fixing a bug or adding a feature.
13
+
* Tests are good. Tests are required unless you're fixing something simple or that was obviously broken.
14
+
* Make your changes and push them to your GitHub repo
15
+
* Once your branch is pushed, submit a pull request.
16
+
* We'll look at the PR and either merge or add feedback. If there isn't any activity within several days, send a message to the mailing list - `scl-dev` AT `groups.google.com`.
17
+
18
+
## Coding Standards
19
+
20
+
SC's source has been reformatted with astyle. When making changes, try
21
+
to match the current formatting. The main points are:
22
+
23
+
- compact (java-style) brackets:
24
+
```C
25
+
if( a == 3 ) {
26
+
c = 5;
27
+
function( a, b );
28
+
} else {
29
+
somefunc();
30
+
}
31
+
```
32
+
- indents are 4 spaces
33
+
- no tab characters
34
+
- line endings are LF (linux), not CRLF (windows)
35
+
- brackets around single-line conditionals
36
+
- spaces inside parentheses and around operators
37
+
- return type on the same line as the function name, unless that's
38
+
too long
39
+
- doxygen-style comments
40
+
(see http://www.stack.nl/~dimitri/doxygen/docblocks.html)
41
+
42
+
If in doubt about a large patch, run astyle with the config file
43
+
misc/astyle.cfg.
44
+
Download astyle from http://sourceforge.net/projects/astyle/files/astyle/
Copy file name to clipboardExpand all lines: cmake/schema_scanner/schemaScanner.cmake
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@
12
12
# this makes compilation faster, but sometimes runs into compiler limitations
13
13
if(NOTDEFINED SC_UNITY_BUILD)
14
14
if(BORLAND)
15
-
message( STATUS"Will not do unity build for this compiler.")
15
+
message( STATUS"Will not do unity build for this compiler. (SC_UNITY_BUILD=FALSE)")
16
16
set(SC_UNITY_BUILD FALSE)
17
17
else()
18
-
message( STATUS"Assuming compiler is capable of unity build.")
18
+
message( STATUS"Assuming compiler is capable of unity build. (SC_UNITY_BUILD=TRUE)")
19
19
set(SC_UNITY_BUILD TRUE)
20
20
endif(BORLAND)
21
-
message( STATUS"Override by setting SC_UNITY_BUILD; TRUE will result in *huge* translation units, higher memory use in compilation, and faster build times.")
21
+
message( STATUS"Override by setting SC_UNITY_BUILD; TRUE will result in faster build times but *huge* translation units and higher memory use in compilation.")
22
22
else(NOTDEFINEDSC_UNITY_BUILD)
23
23
message( STATUS"Respecting user-defined SC_UNITY_BUILD value of ${SC_UNITY_BUILD}.")
Copy file name to clipboardExpand all lines: misc/summarize-appveyor-log.go
+38-22Lines changed: 38 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ import (
8
8
"os"
9
9
"regexp"
10
10
"strings"
11
+
"sort"
11
12
)
12
13
13
14
//uses stdin and stdout
@@ -18,24 +19,26 @@ func main() {
18
19
printMessages("warning", warns)
19
20
}
20
21
21
-
/* the regex will match lines like
22
-
[ 00:03:42] c:\projects\stepcode\src\base\sc_benchmark.h(45): war*ning C4251: 'benchmark::descr' : class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'benchmark' [C:\projects\STEPcode\build\src\base\base.vcxproj]
22
+
/* categorizes warnings and errors based upon the MSVC message number (i.e. C4244)
23
+
* the regex will match lines like
24
+
[ 00:03:42] c:\projects\stepcode\src\base\sc_benchmark.h(45): warning C4251: 'benchmark::descr' : class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'benchmark' [C:\projects\STEPcode\build\src\base\base.vcxproj]
23
25
[00:03:48] C:\projects\STEPcode\src\base\sc_benchmark.cc(61): warning C4244: '=' : conversion from 'SIZE_T' to 'long', possible loss of data [C:\projects\STEPcode\build\src\base\base.vcxproj]*
0 commit comments