| 1 |
********* |
| 2 |
Changelog |
| 3 |
********* |
| 4 |
|
| 5 |
2.0.2 (2025-04-08) |
| 6 |
=========== |
| 7 |
|
| 8 |
* Python versions less than 3.9 are no longer supported. (https://github.com/cpplint/cpplint/pull/334) |
| 9 |
* The false positive for indented member initializer lists in namespaces were eradicated. (https://github.com/cpplint/cpplint/pull/353) |
| 10 |
* The warning on non-const references (runtime/references) is now disabled by default pursuant to the May 2020 Google style guide update. (https://github.com/cpplint/cpplint/pull/305) |
| 11 |
|
| 12 |
2.0.1 (2025-04-02) |
| 13 |
================== |
| 14 |
|
| 15 |
Yet another overdue... hotfix. Sorry this took so long. |
| 16 |
|
| 17 |
* The false positive for indented function parameters in namespaces was eradicated. (https://github.com/cpplint/cpplint/pull/304) |
| 18 |
* Files that end in ".c", ".C", or ".cu" will now also automatically suppress C++-only categories. Previously, `// NO_LINT_C` was required. (https://github.com/cpplint/cpplint/pull/318) |
| 19 |
* build/include-what-you-use now recognizes c-style headers such as <stdio.h> for symbols from <cstdio>. (https://github.com/cpplint/cpplint/pull/319) |
| 20 |
* Ruff, mypy, and codespell were ran on the project to improve performance and reader comprehension thanks to @cclauss. |
| 21 |
* Tests were refactored away from unittest to improve display with pytest by @cclauss. (https://github.com/cpplint/cpplint/pull/332) |
| 22 |
* @Hs293Go fixed an embarrassing typo; the "latch" and "numbers" headers are now recognized correctly instead of "latchnumbers". (https://github.com/cpplint/cpplint/pull/300) |
| 23 |
* CLI tests were refactored through, among other things, making adding new .def's easier by migrating to a parameterized setup. (https://github.com/cpplint/cpplint/pull/317) |
| 24 |
|
| 25 |
2.0.0 (2024-10-06) |
| 26 |
================== |
| 27 |
|
| 28 |
A large long-overdue modernization of the codebase! |
| 29 |
|
| 30 |
* Python versions less than 3.8 are no longer supported. Python 3.12 support was added along with fixed CI for 3.7 and 3.8, courtesy of @jayvdb |
| 31 |
* As a result of all this, setup.py's lint subcommand was removed. Please run the commands directly instead. |
| 32 |
* You can now specify blocks of code that exclude linting with NOLINTBEGIN and NOLINTEND, courtesy of @n3world (https://github.com/cpplint/cpplint/pull/213) |
| 33 |
* The config filename can now be specified through `--config` thanks to @gedankenexperimenter (https://github.com/cpplint/cpplint/pull/198). Specifying a config file not under the current directory will be available in a future release. |
| 34 |
* The `--filter` option can now be only applied to a specific file or even a specific line through utilizing colons, e.g. `-filter=-whitespace:foo.h,+whitespace/braces:foo.h:418`. Courtesy of @PhilLab (https://github.com/cpplint/cpplint/pull/171) |
| 35 |
* NOLINT and NOLINTNEXTLINE comments now support a comma-separated list of categories, courtesy of @n3world (https://github.com/cpplint/cpplint/pull/220) |
| 36 |
* NOLINT and NOLINTNEXTLINE will now ignore categories known to be from clang-tidy thanks to @xatier (https://github.com/cpplint/cpplint/pull/231) |
| 37 |
* Fixed behavior with nested source repositories by @groegeorg (https://github.com/cpplint/cpplint/pull/78) |
| 38 |
* build/include-what-you-use no longer supports transitive headers from the header for the current module for parity with the style guide by @aaronliu0130 |
| 39 |
* build/include-what-you-use now supports a plethora of new functions, courtesy of @geoffviola (https://github.com/cpplint/cpplint/pull/94) |
| 40 |
* build/include-what-you-use will no longer err on similarly-named classes from other namespaces thanks to @geoffviola (https://github.com/cpplint/cpplint/pull/273) |
| 41 |
* Indented functions inside namespaces will now be correctly erred on, courtesy of @Yujinmon (https://github.com/cpplint/cpplint/pull/235) |
| 42 |
* The check for C-style casts now looks for the standard fixed-width integer typenames instead of non-standard ones (e.g. int32_t instead of int32) thanks to @nate-thirdwave (https://github.com/cpplint/cpplint/pull/282) |
| 43 |
* `[[(un)likely]]` no longer clouds readability/braces's super spy−scanning of braces, courtesy of @aaronliu0130 (https://github.com/cpplint/cpplint/pull/265) |
| 44 |
* `readability/braces` will realize that C++20 concepts require a semicolon, courtesy of @armandas (https://github.com/cpplint/cpplint/pull/288) |
| 45 |
* C++20 headers will no longer be flagged as C headers thanks to @miker2 (https://github.com/cpplint/cpplint/pull/216) |
| 46 |
* Same goes for C++23 and C23 headers, thanks to @aaronliu0130 (https://github.com/cpplint/cpplint/pull/239) |
| 47 |
* "complex.h" will be treated as the C99 header instead of the legacy C++ header by @tkruse (https://github.com/cpplint/cpplint/pull/219) |
| 48 |
* Many features not blocked in Google's style guide will no longer be erred own thanks to @aaronliu0130 |
| 49 |
* As part of this, the build/c++14 and build/c++tr1 categories were removed. |
| 50 |
* The filesystem header will now also be blocked, and the build/c++17 category has been added. |
| 51 |
* We will no longer bother you if you mark a no-arg constructor as explicit thanks to @markww (https://github.com/cpplint/cpplint/pull/227) |
| 52 |
* In the same PR, @aaronliu0130 also decreased the verbosity of nagging to mark single-arg constructors as explicit to 4, as the styleguide includes a major exception to this rule that would be very hard to detect. |
| 53 |
* Processing C++ files through stdin/piping is now fixed thanks to @aaronliu0130 (https://github.com/cpplint/cpplint/pull/289) |
| 54 |
* You can now specify the name of the CPPLINT.cfg file through `--config` as long as it is in the same directory, thanks to @gedankenexperimenter (https://github.com/cpplint/cpplint/pull/198) |
| 55 |
* The new __VA_OPT__(,) will now be recognized by the Whitespace linter as a function thanks to @elrinor (https://github.com/cpplint/cpplint/pull/237) |
| 56 |
* The check for including a source file's header file will now scan all files with the same base name. Thanks to @crogre for figuring out what code needed to be changed and @aaronliu0130 for fixing it (https://github.com/cpplint/cpplint/pull/104) |
| 57 |
* `build/class` and `build/namespaces` no longer check for whether a namespace or class has a closing brace from @geoffviola (https://github.com/cpplint/cpplint/pull/272). This should be done in a more efficient manner by a compiler or language server instead. As part of this, the `build/class` category was removed. |
| 58 |
* Fixed false positive when an if/else statement has braces everywhere but one of the closing braces before the final block is on a separate line by @aaronliu0130 (https://github.com/cpplint/cpplint/pull/265) |
| 59 |
* For header files, the check for a header guard's name will now be cached and only run once, as opposed to previously being run on every line. This results in a ~5.6% reduction in run time thanks to @matyalatte, who figured it out, and @aaronliu0130 for implementing it (https://github.com/cpplint/cpplint/pull/291) |
| 60 |
* Usages of the deprecated sre_compile were refactored by @jspricke (https://github.com/cpplint/cpplint/pull/214) |
| 61 |
* Usages of deprecated unittest aliases were refactored by @tirkarthi (https://github.com/cpplint/cpplint/pull/182), @aaronliu0130 and @jayvdb |
| 62 |
* Typos in this changelog, comments and functions were fixed by @jayvdb (https://github.com/cpplint/cpplint/pull/245), @aaronliu0130 and @tkruse |
| 63 |
* %-strings were modernized into f-strings by @aaronliu0130 |
| 64 |
|
| 65 |
1.6.1 (2022-08-20) |
| 66 |
================== |
| 67 |
|
| 68 |
* Fix #195 Fix post increment/decrement operator causing a false positive. |
| 69 |
* Fix #202 .hh files should not be considered system headers |
| 70 |
* Fix #207 Python2 incompatibility for loading CPPLINT.cfg file |
| 71 |
* Fix #184 NOLINT(clang-analyzer) comments should not cause warnings |
| 72 |
|
| 73 |
1.6.0 (2022-02-19) |
| 74 |
================== |
| 75 |
|
| 76 |
* Fix #188: "Include the directory when naming header files" also for header files with other names like "*.hpp" |
| 77 |
|
| 78 |
1.5.5 (2021-05-20) |
| 79 |
================== |
| 80 |
|
| 81 |
* Fix #172: Added 'size_t' to typecasts detected by CheckCStyleCast |
| 82 |
* Fixed wrong CLI help text: Each filter needs + or - |
| 83 |
* Fix #164: add elif as an exception for CheckSpacingForFunctionCall() |
| 84 |
* Fix google#346: --root option not working on Windows due to slashes in path |
| 85 |
|
| 86 |
1.5.4 (2020-08-18) |
| 87 |
================== |
| 88 |
|
| 89 |
* Fix google#166, Allow space before C++11 attributes |
| 90 |
|
| 91 |
1.5.3 (2020-07-20) |
| 92 |
================== |
| 93 |
|
| 94 |
* Fix #156: sed/gsed output parameter rejected |
| 95 |
* Fix #156: sed/gsed output without other stdout information |
| 96 |
* improvements to regression tests |
| 97 |
|
| 98 |
1.5.2 (2020-06-24) |
| 99 |
================== |
| 100 |
|
| 101 |
* Fix #83, output formats "sed" and "gsed" to auto-fix some issues |
| 102 |
* Fix #92, new category "build/namespaces_headers" for unnamed namespaces in header file |
| 103 |
* Sort list of files before processing |
| 104 |
* Fix #144 False positive for indent when using QT macros "signals" and "slots" |
| 105 |
* Fix #76 Parsing of class decorators that also use digits |
| 106 |
* Fix #139 Add message "Relative paths like . and .. are not allowed" |
| 107 |
|
| 108 |
1.5.1 (2020-06-05) |
| 109 |
================== |
| 110 |
|
| 111 |
* Revert #43 behavior change for include order from 1.5.0, and hide it behind command-line-flag `--includeorder=standardcfirst`. |
| 112 |
It turns out there is no easy objective way to tell c system headers from certain c++ library headers, and Google cpplint intentionally classifies some C++ header includes as C system header for simplicity. |
| 113 |
* Libraries considered as C system headers using --includeorder=standardcfirst now also includes linux-specific headers (glibc-devel, glibc-kernheaders, linux-libc-dev). |
| 114 |
|
| 115 |
|
| 116 |
1.5.0 (2020-05-31) |
| 117 |
================== |
| 118 |
|
| 119 |
* Fix #43 false positives in header include order by checking includes against a list of c headers. |
| 120 |
Since this interprets certain include lines different than before, output about header include order changes. |
| 121 |
|
| 122 |
1.4.6 (2020-05-31) |
| 123 |
================== |
| 124 |
|
| 125 |
* Fix #135: allow 'if constexpr' in readability/braces. |
| 126 |
* Fix runtime warning: Close files after reading contents |
| 127 |
|
| 128 |
1.4.5 (2020-01-13) |
| 129 |
================== |
| 130 |
|
| 131 |
* Avoid false positive for [build/include_what_you_use] in case of `foo.set<type>` and `foo->set<type>` usage. |
| 132 |
* Avoid false positive for [build/include_what_you_use] in case of `map` is user defined function |
| 133 |
* Escape backslashes in pydoc strings to get rid of DeprecationWarning. |
| 134 |
* Fix false positive "should include its header" for 3rd party headers |
| 135 |
* Add support for c++17 tuple destructuring |
| 136 |
* fix #123: Inconsistent behavior of --headers and --extensions |
| 137 |
* Fix #114: --exclude not working recursively |
| 138 |
* fix #112, identifying of copy constructors should allow combinations of volatile and const |
| 139 |
|
| 140 |
1.4.4 (2019-02-25) |
| 141 |
================== |
| 142 |
|
| 143 |
Another cleanup release |
| 144 |
|
| 145 |
* NOBUG: fix unit/cli tests for source release |
| 146 |
* NOBUG: reduce diff to upstream by intentionally using deprecated functions where upstream uses them |
| 147 |
* add `--version` command (https://github.com/cpplint/cpplint/issues/27) |
| 148 |
|
| 149 |
1.4.3 (2019-02-18) |
| 150 |
================== |
| 151 |
|
| 152 |
* Revert "Fix the `build/endif_comment` check", same as reverted in upstream |
| 153 |
|
| 154 |
1.4.2 (2019-02-17) |
| 155 |
================== |
| 156 |
|
| 157 |
* Cleanup release, fixes further issues with tests and source distribution |
| 158 |
|
| 159 |
1.4.1 (2019-02-17) |
| 160 |
================== |
| 161 |
|
| 162 |
* Cleanup release, only adds test support files to source dist |
| 163 |
|
| 164 |
1.4.0 (2019-02-17) |
| 165 |
================== |
| 166 |
|
| 167 |
* Incorporate cpplint updates from google (e5d807c6a0d, 2018-05-03) |
| 168 |
* Fix the `build/endif_comment` check (https://github.com/google/styleguide/pull/169) |
| 169 |
* Teach the explicit constructor check about constexpr (#56) |
| 170 |
* Changed vs7 output format (#57) |
| 171 |
* Remove presubmit check for DISALLOW_* macros (#54) |
| 172 |
* add `--quiet` flag as in upstream (https://github.com/google/styleguide/pull/293) |
| 173 |
* support `--root` argument to run in different folder (https://github.com/google/styleguide/pull/291) |
| 174 |
* Fix 16bit Unicode issue (https://github.com/google/styleguide/issues/337) |
| 175 |
|
| 176 |
1.3.0 (2016-07-12) |
| 177 |
================== |
| 178 |
|
| 179 |
* Incorporate cpplint updates from google (6d3a7d8a2, 2016-07-14) |
| 180 |
* Add --headers flag to choose which extensions are header files. |
| 181 |
* Add regression testing. |
| 182 |
|
| 183 |
1.2.2 (2016-04-07) |
| 184 |
================== |
| 185 |
|
| 186 |
* Fixes bug causing RValue detection with namespaces to fail. |
| 187 |
|
| 188 |
1.2.1 (2016-03-19) |
| 189 |
================== |
| 190 |
|
| 191 |
* Fixes error in setup.py. |
| 192 |
|
| 193 |
1.2.0 (2016-03-19) |
| 194 |
================== |
| 195 |
|
| 196 |
* Adds `.cu` and `.cuh` as supported file extensions by default. |
| 197 |
* Moves the warning "Include the directory when naming .h files" from the `build/include` category to the `build/include_subdir` category. |
| 198 |
|
| 199 |
1.1.0 (2016-02-24) |
| 200 |
================== |
| 201 |
|
| 202 |
* Adds quiet option to suppress non error-related output. |
| 203 |
|
| 204 |
1.0.1 (2016-02-12) |
| 205 |
================== |
| 206 |
|
| 207 |
* Updates PyPi README. |
| 208 |
|
| 209 |
1.0.0 (2016-02-03) |
| 210 |
================== |
| 211 |
|
| 212 |
* Fixes a --repository flag bug. |
| 213 |
|
| 214 |
0.0.9 (2016-01-23) |
| 215 |
================== |
| 216 |
|
| 217 |
* Adds the --exclude flag to exclude files from being linted. |
| 218 |
|
| 219 |
0.0.8 (2016-01-18) |
| 220 |
================== |
| 221 |
|
| 222 |
* Adds the --repository flag to set the location of the project root for header guard calculations. |
| 223 |
* Adds support for ``#pragma once`` as an alternative to header include guards. |
| 224 |
|
| 225 |
0.0.7 (2016-01-07) |
| 226 |
================== |
| 227 |
|
| 228 |
* Fixes a Windows include guard bug. |
| 229 |
* Adds escaping and more detail to JUnit XML output. |
| 230 |
|
| 231 |
0.0.6 (2015-12-15) |
| 232 |
================== |
| 233 |
|
| 234 |
* Adds the --recursive flag. |
| 235 |
* Adds JUnit XML output. |
| 236 |
|
| 237 |
0.0.5 (2015-01-04) |
| 238 |
================== |
| 239 |
|
| 240 |
* Maintenance release, undoes earlier project folder structure changes to remain as true to upstream as possible. |
| 241 |
|
| 242 |
0.0.4 (2015-01-04) |
| 243 |
================== |
| 244 |
|
| 245 |
* Merged with upstream revision r141 (2014-12-04) |
| 246 |
* This includes many new checks, see commit messages for details |
| 247 |
* This also reverts some renaming of files, to stay close to the original project |
| 248 |
|
| 249 |
0.0.3 (2012-11-24) |
| 250 |
================== |
| 251 |
|
| 252 |
* python 3 compatibility |
| 253 |
|
| 254 |
0.0.2 (2012-11-06) |
| 255 |
================== |
| 256 |
|
| 257 |
* fixed and extended allowed extensions |
| 258 |
|
| 259 |
0.0.1 (2012-10-13) |
| 260 |
================== |
| 261 |
|
| 262 |
* import from googlecode, added setup.py |
| 263 |
* imported revision r83 (2012-05-11) |