mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 13:14:40 +03:00
Merge remote-tracking branch 'refs/remotes/origin/master' into hs-gsl-intro-branch
This commit is contained in:
@@ -21,7 +21,7 @@ your local changes are appropriate to pull back into the original guidelines, pl
|
|||||||
- **Maintain the Guidelines** The C++ Core Guidelines were created from a wealth of knowledge spread across a number of organizations
|
- **Maintain the Guidelines** The C++ Core Guidelines were created from a wealth of knowledge spread across a number of organizations
|
||||||
worldwide. If you or your organization is passionate about helping to create the guidelines, consider becoming an editor or maintainer. If
|
worldwide. If you or your organization is passionate about helping to create the guidelines, consider becoming an editor or maintainer. If
|
||||||
you're a C++ expert who is serious about participating, please
|
you're a C++ expert who is serious about participating, please
|
||||||
[email coreguidelines@isocpp.org](mailto:coreguidelines@isocpp.org?subject=Maintain the C++ Code Guidelines).
|
[email coreguidelines@isocpp.org](mailto:coreguidelines@isocpp.org?subject=Maintain%20the%20C++%20Code%20Guidelines).
|
||||||
|
|
||||||
## Contributor License Agreement
|
## Contributor License Agreement
|
||||||
By contributing content to the C++ Core Guidelines (i.e., submitting a pull request for inclusion in this repository) you agree with the
|
By contributing content to the C++ Core Guidelines (i.e., submitting a pull request for inclusion in this repository) you agree with the
|
||||||
|
|||||||
2869
CppCoreGuidelines.md
2869
CppCoreGuidelines.md
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
|||||||
'
|
'
|
||||||
|
10'000
|
||||||
0xFF0000
|
0xFF0000
|
||||||
0b0101'0101
|
0b0101'0101
|
||||||
10x
|
10x
|
||||||
@@ -44,6 +45,7 @@ args
|
|||||||
arr2
|
arr2
|
||||||
arrayindex
|
arrayindex
|
||||||
ASIC
|
ASIC
|
||||||
|
asio
|
||||||
AST
|
AST
|
||||||
async
|
async
|
||||||
BDE
|
BDE
|
||||||
@@ -57,6 +59,7 @@ bool
|
|||||||
buf
|
buf
|
||||||
bufmax
|
bufmax
|
||||||
C1
|
C1
|
||||||
|
C11
|
||||||
C2
|
C2
|
||||||
callees
|
callees
|
||||||
callers'
|
callers'
|
||||||
@@ -76,6 +79,7 @@ class'
|
|||||||
clib
|
clib
|
||||||
Cline99
|
Cline99
|
||||||
ClosePort
|
ClosePort
|
||||||
|
cm3
|
||||||
CommonMark
|
CommonMark
|
||||||
composability
|
composability
|
||||||
composable
|
composable
|
||||||
@@ -100,6 +104,7 @@ CppCon
|
|||||||
CRTP
|
CRTP
|
||||||
cst
|
cst
|
||||||
cstdarg
|
cstdarg
|
||||||
|
cstdio
|
||||||
cstring
|
cstring
|
||||||
cstylecast
|
cstylecast
|
||||||
ctor
|
ctor
|
||||||
@@ -123,6 +128,7 @@ default0
|
|||||||
default00
|
default00
|
||||||
defop
|
defop
|
||||||
del
|
del
|
||||||
|
deref
|
||||||
derived1
|
derived1
|
||||||
derived2
|
derived2
|
||||||
destructors
|
destructors
|
||||||
@@ -141,6 +147,7 @@ endl
|
|||||||
enum
|
enum
|
||||||
Enum
|
Enum
|
||||||
enums
|
enums
|
||||||
|
EoP
|
||||||
eq
|
eq
|
||||||
eqdefault
|
eqdefault
|
||||||
EqualityComparable
|
EqualityComparable
|
||||||
@@ -161,6 +168,7 @@ fib10
|
|||||||
file1
|
file1
|
||||||
file2
|
file2
|
||||||
file3
|
file3
|
||||||
|
filesystem
|
||||||
flag1
|
flag1
|
||||||
fmt
|
fmt
|
||||||
fn
|
fn
|
||||||
@@ -179,6 +187,7 @@ g1
|
|||||||
g2
|
g2
|
||||||
GCC
|
GCC
|
||||||
Geosoft
|
Geosoft
|
||||||
|
getline
|
||||||
getx
|
getx
|
||||||
GFM
|
GFM
|
||||||
Girou
|
Girou
|
||||||
@@ -200,7 +209,9 @@ hnd
|
|||||||
homebrew
|
homebrew
|
||||||
HPL
|
HPL
|
||||||
href
|
href
|
||||||
|
HTTP
|
||||||
Hyslop
|
Hyslop
|
||||||
|
i2
|
||||||
IDE
|
IDE
|
||||||
IDEs
|
IDEs
|
||||||
IEC
|
IEC
|
||||||
@@ -225,14 +236,17 @@ int32
|
|||||||
int64
|
int64
|
||||||
ints
|
ints
|
||||||
io
|
io
|
||||||
|
ios
|
||||||
iostream
|
iostream
|
||||||
Iostream
|
Iostream
|
||||||
|
iostreams
|
||||||
iso
|
iso
|
||||||
isocpp
|
isocpp
|
||||||
ISORC
|
ISORC
|
||||||
istream
|
istream
|
||||||
Iter
|
Iter
|
||||||
Jiangang
|
Jiangang
|
||||||
|
jmp
|
||||||
join's
|
join's
|
||||||
JSF
|
JSF
|
||||||
Juhl
|
Juhl
|
||||||
@@ -244,15 +258,18 @@ Lakos96
|
|||||||
Lavavej
|
Lavavej
|
||||||
LCSD05
|
LCSD05
|
||||||
lifecycle
|
lifecycle
|
||||||
|
linearization
|
||||||
llvm
|
llvm
|
||||||
lockfree
|
lockfree
|
||||||
Lomow
|
Lomow
|
||||||
|
longjmp
|
||||||
LSP
|
LSP
|
||||||
lst
|
lst
|
||||||
lvalue
|
lvalue
|
||||||
lvalues
|
lvalues
|
||||||
m1
|
m1
|
||||||
m2
|
m2
|
||||||
|
m3
|
||||||
macros2
|
macros2
|
||||||
malloc
|
malloc
|
||||||
mallocfree
|
mallocfree
|
||||||
@@ -278,8 +295,10 @@ Meyers15
|
|||||||
Meyers96
|
Meyers96
|
||||||
Meyers97
|
Meyers97
|
||||||
microbenchmarks
|
microbenchmarks
|
||||||
|
middleware
|
||||||
mixin
|
mixin
|
||||||
mixins
|
mixins
|
||||||
|
mnemonizes
|
||||||
modify1
|
modify1
|
||||||
modify2
|
modify2
|
||||||
moredata
|
moredata
|
||||||
@@ -289,6 +308,7 @@ mtx
|
|||||||
Murray93
|
Murray93
|
||||||
mutex
|
mutex
|
||||||
mutexes
|
mutexes
|
||||||
|
mx
|
||||||
myMap
|
myMap
|
||||||
MyMap
|
MyMap
|
||||||
myset
|
myset
|
||||||
@@ -316,6 +336,7 @@ nonvirtual
|
|||||||
nonvirtually
|
nonvirtually
|
||||||
nothrow
|
nothrow
|
||||||
NR
|
NR
|
||||||
|
nullness
|
||||||
nullptr
|
nullptr
|
||||||
NVI
|
NVI
|
||||||
ok
|
ok
|
||||||
@@ -358,6 +379,7 @@ PortHandle
|
|||||||
PostInitialize
|
PostInitialize
|
||||||
pp216
|
pp216
|
||||||
PPP
|
PPP
|
||||||
|
pragma
|
||||||
pre
|
pre
|
||||||
Pre
|
Pre
|
||||||
precomputation
|
precomputation
|
||||||
@@ -381,6 +403,7 @@ r2
|
|||||||
raii
|
raii
|
||||||
RAII
|
RAII
|
||||||
Rc
|
Rc
|
||||||
|
Rclib
|
||||||
rcon
|
rcon
|
||||||
Rcon
|
Rcon
|
||||||
Rconc
|
Rconc
|
||||||
@@ -396,6 +419,7 @@ RegularFunction
|
|||||||
reimplement
|
reimplement
|
||||||
reinterpretcast
|
reinterpretcast
|
||||||
Reis
|
Reis
|
||||||
|
Reis's
|
||||||
Renum
|
Renum
|
||||||
reseat
|
reseat
|
||||||
reseating
|
reseating
|
||||||
@@ -415,6 +439,7 @@ Rper
|
|||||||
Rr
|
Rr
|
||||||
RRconc
|
RRconc
|
||||||
Rsl
|
Rsl
|
||||||
|
Rstr
|
||||||
RTTI
|
RTTI
|
||||||
rvalue
|
rvalue
|
||||||
rvalues
|
rvalues
|
||||||
@@ -427,6 +452,7 @@ Sarkar
|
|||||||
scanf
|
scanf
|
||||||
Sd
|
Sd
|
||||||
SEI
|
SEI
|
||||||
|
semiregular
|
||||||
Semiregular
|
Semiregular
|
||||||
SemiRegular
|
SemiRegular
|
||||||
Sergey
|
Sergey
|
||||||
@@ -435,6 +461,7 @@ SFINAE
|
|||||||
sharedness
|
sharedness
|
||||||
sharedptrparam
|
sharedptrparam
|
||||||
'sharedptrparam'
|
'sharedptrparam'
|
||||||
|
setjmp
|
||||||
SignedIntegral
|
SignedIntegral
|
||||||
simpleFunc
|
simpleFunc
|
||||||
'size'
|
'size'
|
||||||
@@ -461,11 +488,13 @@ stmt
|
|||||||
str
|
str
|
||||||
strdup
|
strdup
|
||||||
strlen
|
strlen
|
||||||
|
Str15
|
||||||
Stroustrup
|
Stroustrup
|
||||||
Stroustrup00
|
Stroustrup00
|
||||||
Stroustrup05
|
Stroustrup05
|
||||||
Stroustrup13
|
Stroustrup13
|
||||||
Stroustrup14
|
Stroustrup14
|
||||||
|
Stroustrup94
|
||||||
Stroustrup's
|
Stroustrup's
|
||||||
struct
|
struct
|
||||||
suboperations
|
suboperations
|
||||||
@@ -495,6 +524,7 @@ thread2
|
|||||||
Tjark
|
Tjark
|
||||||
tmp
|
tmp
|
||||||
TMP
|
TMP
|
||||||
|
tock
|
||||||
TODO
|
TODO
|
||||||
toolchains
|
toolchains
|
||||||
TotallyOrdered
|
TotallyOrdered
|
||||||
@@ -507,8 +537,11 @@ typeid
|
|||||||
typename
|
typename
|
||||||
typesafe
|
typesafe
|
||||||
UB
|
UB
|
||||||
|
u1
|
||||||
|
u2
|
||||||
unaliased
|
unaliased
|
||||||
uncompromised
|
uncompromised
|
||||||
|
underuse
|
||||||
undetached
|
undetached
|
||||||
unencapsulated
|
unencapsulated
|
||||||
unenforceable
|
unenforceable
|
||||||
@@ -519,6 +552,7 @@ unittests
|
|||||||
unnamed2
|
unnamed2
|
||||||
use1
|
use1
|
||||||
users'
|
users'
|
||||||
|
UTF
|
||||||
util
|
util
|
||||||
v1
|
v1
|
||||||
va
|
va
|
||||||
@@ -543,6 +577,7 @@ vr
|
|||||||
vtbls
|
vtbls
|
||||||
vv
|
vv
|
||||||
w0
|
w0
|
||||||
|
wchar
|
||||||
webby
|
webby
|
||||||
Webcolor
|
Webcolor
|
||||||
webcolors
|
webcolors
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import cpplint
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
FILTERS='cpplint --verbose=0 --linelength=100 --filter=-legal/copyright,-build/include_order,-build/c++11,-build/namespaces,-build/class,-build/include,-build/include_subdir,-readability/inheritance,-readability/function,-readability/casting,-readability/namespace,-readability/alt_tokens,-readability/braces,-readability/fn_size,-whitespace/comments,-whitespace/braces,-whitespace/empty_loop_body,-whitespace/indent,-whitespace/newline,-runtime/explicit,-runtime/arrays,-runtime/int,-runtime/references,-runtime/string,-runtime/operator'.split(' ')
|
FILTERS='cpplint --verbose=0 --linelength=100 --filter=-legal/copyright,-build/include_order,-build/c++11,-build/namespaces,-build/class,-build/include,-build/include_subdir,-readability/inheritance,-readability/function,-readability/casting,-readability/namespace,-readability/alt_tokens,-readability/braces,-readability/fn_size,-whitespace/comments,-whitespace/braces,-whitespace/empty_loop_body,-whitespace/indent,-whitespace/newline,-runtime/explicit,-runtime/arrays,-runtime/int,-runtime/references,-runtime/string,-runtime/operator,-runtime/printf'.split(' ')
|
||||||
|
|
||||||
result = False
|
result = False
|
||||||
files = sys.argv[1:]
|
files = sys.argv[1:]
|
||||||
|
|||||||
Reference in New Issue
Block a user