The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++
79 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | CppCoreGuidelines.md | 9161 | |
| LOW | CppCoreGuidelines.md | 19721 | |
| LOW | scripts/python/md-split.py | 141 | result.reverse() |
| LOW | scripts/python/cpplint.py | 1 | #!/usr/bin/env python |
| LOW | scripts/python/cpplint.py | 2461 | # triggered by namespace size only, which works most of the time. |
| LOW | scripts/python/cpplint.py | 2521 | # - _ClassInfo: a class or struct. |
| LOW | scripts/python/cpplint.py | 2961 | # TODO(unknown): Could it be expanded safely to arbitrary references, |
| LOW | scripts/python/cpplint.py | 3341 | # namespace body. In other words, don't issue blank line warnings |
| LOW | scripts/python/cpplint.py | 3381 | # simple heuristic here: If the line is indented 4 spaces; and we have a |
| LOW | scripts/python/cpplint.py | 3481 | # You should always have whitespace around binary operators. |
| LOW | scripts/python/cpplint.py | 3521 | # not otherwise (particularly, not when used as streams) |
| LOW | scripts/python/cpplint.py | 3601 | """ |
| LOW | scripts/python/cpplint.py | 3701 | error: The function to call with any errors found. |
| LOW | scripts/python/cpplint.py | 3721 | # LOG(INFO) << type{} << " ..."; |
| LOW | scripts/python/cpplint.py | 3801 | Currently the only thing checked here is blank line before protected/private. |
| LOW | scripts/python/cpplint.py | 4001 | linenum: The number of the line to check. |
| LOW | scripts/python/cpplint.py | 4021 | # if (...) else {}; |
| LOW | scripts/python/cpplint.py | 4041 | # {}; |
| LOW | scripts/python/cpplint.py | 4061 | # warn, specifically: |
| LOW | scripts/python/cpplint.py | 4361 | if rhs.find('&&') > -1 or rhs.find('||') > -1: |
| LOW | scripts/python/cpplint.py | 4461 | # Don't want to use "raw" either, because we don't want to check inside C++11 |
| LOW | scripts/python/cpplint.py | 4721 | 'Do not include .' + extension + ' files from other packages') |
| LOW | scripts/python/cpplint.py | 4801 | position += 1 |
| LOW | scripts/python/cpplint.py | 4901 | # int operator&(const X& x) { return 42; } // unary operator& |
| LOW | scripts/python/cpplint.py | 5021 | r'((?:|static +)(?:|const +))(?::*std::)?string( +const)? +' |
| LOW | scripts/python/cpplint.py | 5141 | if remove_function_body: |
| LOW | scripts/python/cpplint.py | 5201 | # of these forms: |
| LOW | scripts/python/cpplint.py | 5241 | # Check for non-const references in function parameters. A single '&' may |
| LOW | scripts/python/cpplint.py | 5321 | # Parameterless conversion functions, such as bool(), are allowed as they are |
| LOW | scripts/python/cpplint.py | 5381 | CheckCStyleCast(filename, clean_lines, linenum, 'reinterpret_cast', |
| LOW | scripts/python/cpplint.py | 5721 | # For Emacs's flymake. |
| LOW | scripts/python/cpplint.py | 6261 | if filename != '-' and file_extension not in GetAllExtensions(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/python/md-split.py | 17 | |
| LOW | scripts/python/cpplint.py | 683 | |
| LOW | scripts/python/cpplint.py | 1355 | |
| LOW | scripts/python/cpplint.py | 1383 | |
| LOW | scripts/python/cpplint.py | 1458 | |
| LOW | scripts/python/cpplint.py | 1689 | |
| LOW | scripts/python/cpplint.py | 1811 | |
| LOW | scripts/python/cpplint.py | 2089 | |
| LOW | scripts/python/cpplint.py | 2888 | |
| LOW | scripts/python/cpplint.py | 3157 | |
| LOW | scripts/python/cpplint.py | 3228 | |
| LOW | scripts/python/cpplint.py | 3312 | |
| LOW | scripts/python/cpplint.py | 3440 | |
| LOW | scripts/python/cpplint.py | 3798 | |
| LOW | scripts/python/cpplint.py | 3876 | |
| LOW | scripts/python/cpplint.py | 4143 | |
| LOW | scripts/python/cpplint.py | 4270 | |
| LOW | scripts/python/cpplint.py | 4420 | |
| LOW | scripts/python/cpplint.py | 4753 | |
| LOW | scripts/python/cpplint.py | 5169 | |
| LOW | scripts/python/cpplint.py | 5308 | |
| LOW | scripts/python/cpplint.py | 5657 | |
| LOW | scripts/python/cpplint.py | 6106 | |
| LOW | scripts/python/cpplint.py | 6313 | |
| LOW | scripts/python/cpplint.py | 6414 | |
| LOW | scripts/python/cpplint.py | 910 | |
| LOW | scripts/python/cpplint.py | 1077 | |
| LOW | scripts/python/cpplint.py | 1264 | |
| LOW | scripts/python/cpplint.py | 1622 | |
| LOW | scripts/python/cpplint.py | 2633 | |
| LOW | scripts/python/cpplint.py | 2690 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/python/cpplint_wrap.py | 1 | ## wraps local cpplint to produce verbose output without code harness |
| LOW | scripts/python/cpplint.py | 2680 | # Here we can just use a shallow copy since we are the last |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/python/md-split.py | 6 | |
| LOW | scripts/python/md-split.py | 6 | |
| LOW | scripts/python/md-split.py | 6 | |
| LOW | scripts/python/md-split.py | 9 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/python/cpplint.py | 1107 | # Create a testcase for each file |
| MEDIUM | scripts/python/cpplint.py | 5696 | # The following function is just a speed up, no semantics are changed. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/python/cpplint.py | 2614 | # Check if token is an unmatched '<'. |
| LOW | scripts/python/cpplint.py | 3240 | # Check if the // may be in quotes. If so, ignore it |
| LOW | scripts/python/cpplint.py | 4226 | # Check if the body is empty |
| LOW | scripts/python/cpplint.py | 4507 | # Check if the line is a header guard. |
| LOW | scripts/python/cpplint.py | 4886 | # Check if people are using the verboten C basic types. The only exception |
| LOW | scripts/python/cpplint.py | 4898 | # Check if some verboten operator overloading is going on |
| LOW | scripts/python/cpplint.py | 5079 | # Check if some verboten C functions are being used. |
| LOW | scripts/python/cpplint.py | 5839 | # Set end_col to check whole lines after we are done with the |