-
ArgumentCommentCheck.cpp -
SuspiciousSemicolonCheck.cpp -
ProTypeMemberInitCheck.cpp -
IsolateDeclarationCheck.h 24/24
IsolateDeclarationCheck.cpp -
ReadabilityTidyModule.cpp 11/11
readability-isolate-declaration.rst -
readability-isolate-declaration-cxx17.cpp -
readability-isolate-declaration-fixing.cpp -
readability-isolate-declaration.c 1/1
readability-isolate-declaration.cpp
| | Authored by JonasToth on Sep 11 2018, 2:16 PM. Event TimelineJonasToth retitled this revision from [WIP][clang-tidy] initial ideas to isolate variable declarations to [clang-tidy] new check 'readability-isolate-declaration'. This revision is now accepted and ready to land. This revision was automatically updated to reflect the committed changes. Path | Size |
---|
| | | | | 11 lines | | 3 lines | | | | 6 lines | | | | 1 line | | 36 lines | | 288 lines | | 3 lines | | | | 3 lines | | 64 lines | | 74 lines | | | | 6 lines | | | | 3 lines | | 99 lines | | | | 103 lines | | 64 lines | | 13 lines | | 412 lines |
Commit | Tree | Parents | Author | Summary | Date |
---|
55f202505097 | a9989989647d | 5adc2c85de4d | Jonas Toth | address review comments | Sep 29 2018, 4:31 AM | 5adc2c85de4d | 4d866df1aadc | 004d771b0d0d | Jonas Toth | simplify matcher slighty, as initStmt in if/switch don't have a compundstmt as… (Show More…) | Sep 28 2018, 11:32 AM | 004d771b0d0d | f4a63d068efc | c923819034a9 | Jonas Toth | remove debug output for paren search | Sep 28 2018, 8:11 AM | c923819034a9 | 64684701ec76 | 0a88ff83ed9f | Jonas Toth | fix paren issue, introduced non-local changes i will extract and post in a… (Show More…) | Sep 28 2018, 7:58 AM | 0a88ff83ed9f | 1d075b16a4a0 | ddbef05ee391 55db8de10f5e | Jonas Toth | Merge branch 'master' into experiment_isolate_decl | Sep 28 2018, 2:37 AM | ddbef05ee391 | e6c4f690aff6 | f4c5f3ecc272 | Jonas Toth | rename check to 'readability-isolate-declaration' | Sep 28 2018, 2:12 AM | f4c5f3ecc272 | e133cefe8ef0 | 39c32a98de35 | Jonas Toth | add tests for auto and decltype | Sep 28 2018, 2:11 AM | 39c32a98de35 | c8b19a0dbdcf | eee858161f5e | Jonas Toth | write user-facing documentation | Sep 28 2018, 1:49 AM | eee858161f5e | 49f4fa55f9ba | 35449051fba1 | Jonas Toth | last cleanup for today, testing on clang/lib looks good, but is already very… (Show More…) | Sep 27 2018, 1:55 PM | 35449051fba1 | d12ee39ef337 | b2a2511cb5c7 | Jonas Toth | fix doc typo | Sep 27 2018, 1:47 PM | b2a2511cb5c7 | 73361657a06b | 3cedc0ee57cf | Jonas Toth | bail out in transformation if there are PP directives in the source range of… (Show More…) | Sep 27 2018, 1:32 PM | 3cedc0ee57cf | caf6008be3f9 | 77bcb5fbbf1a | Jonas Toth | simplification on FIXME:/TODO: | Sep 27 2018, 12:41 PM | 77bcb5fbbf1a | c4643fffb218 | b76b372c0c9b | Jonas Toth | adjust diagnostic message | Sep 27 2018, 12:32 PM | b76b372c0c9b | de41facfeab1 | 325d00b4fd2e | Jonas Toth | clean lexer utils as well | Sep 27 2018, 12:27 PM | 325d00b4fd2e | a5488851338d | e365c892c1dd | Jonas Toth | clean debug output | Sep 27 2018, 12:24 PM | e365c892c1dd | 707e6961d464 | 2d4238c98863 | Jonas Toth | move functioning member pointer test | Sep 27 2018, 12:18 PM | 2d4238c98863 | d74e1872d889 | bf6e419c58fa | Jonas Toth | make memberpointer detection more accurate | Sep 27 2018, 12:14 PM | bf6e419c58fa | 93edb0b5b4d0 | 6c3a32000725 | Jonas Toth | fix typedefs and function pointers with comments as distraction | Sep 27 2018, 11:51 AM | 6c3a32000725 | c1eee3b608c8 | 45473475a130 | Jonas Toth | address review comments, most nits solved | Sep 27 2018, 10:46 AM | 45473475a130 | 3a5595ae3719 | d82e0287d180 | Jonas Toth | refactor slightly, add better in-code comments to explain whats happening, add… (Show More…) | Sep 27 2018, 4:57 AM | d82e0287d180 | b26401e55907 | 3fcfdb4fe4b5 | Jonas Toth | add space after clang-tidy in banner | Sep 27 2018, 4:03 AM | 3fcfdb4fe4b5 | 11935dd691a1 | 1f1a56276694 | Jonas Toth | address review comments | Sep 27 2018, 4:01 AM | 1f1a56276694 | 234fb2c43796 | 8918edeba570 3776b2420e72 | Jonas Toth | Merge branch 'master' into experiment_isolate_decl | Sep 27 2018, 3:45 AM | 8918edeba570 | 03613309d52d | 9033e02d443b | Jonas Toth | [Misc] remove custom string handling function | Sep 22 2018, 1:28 PM | 9033e02d443b | e24069f47c11 | 8da487241e88 | Jonas Toth | [Refactor] move lexer stuff into LexerUtils | Sep 22 2018, 12:31 PM | 8da487241e88 | 06d6c06152c0 | 8580824b890c 71581471a637 | Jonas Toth | Merge branch 'master' into experiment_isolate_decl | Sep 21 2018, 2:18 PM | 8580824b890c | e654d0bce20b | c46e1a077482 | Jonas Toth | minor adjustments, add fixmes | Sep 18 2018, 3:15 PM | c46e1a077482 | 445b8b8a60f8 | 05e31d7cd75d | Jonas Toth | include big test-suite and make them run | Sep 18 2018, 2:51 PM | 05e31d7cd75d | 366ec4a041eb | 446965d50e6d | Jonas Toth | further work on isolate decl, fix tokenizing bug with templates | Sep 18 2018, 1:55 PM | 446965d50e6d | aacfb86f8a02 | ba0a49a127d9 d9a480a96a51 | Jonas Toth | Merge branch 'master' into experiment_isolate_decl | Sep 18 2018, 10:39 AM | ba0a49a127d9 | d6d350cd267a | 9dcd453b0a60 | Jonas Toth | use static functions instead anonymous namespace | Sep 17 2018, 6:18 AM | 9dcd453b0a60 | 6392749ce207 | 3f8d32f37bbc | Jonas Toth | improve diagnostic to include number of declared variables | Sep 17 2018, 6:09 AM | 3f8d32f37bbc | e407db92c56d | 8c6d657109c7 | Jonas Toth | add tests for macros | Sep 16 2018, 7:33 AM | 8c6d657109c7 | 5a1d00efe640 | befbbef78c3e | Jonas Toth | fix bug for 2 decl stmts, more debug output when the transformation bails | Sep 16 2018, 7:19 AM | befbbef78c3e | 70552e2a79ec | eeda25e56932 | Jonas Toth | make error handling more solid, broke previously working transformations for… (Show More…) | Sep 15 2018, 2:36 PM | eeda25e56932 | c8671c30ae2d | b11a390834ff | Jonas Toth | refactor token finding unified | Sep 15 2018, 1:37 PM | b11a390834ff | 94daa424bc0d | cbc3913cd4e3 | Jonas Toth | ignore some special cases, add c++17 tests | Sep 15 2018, 10:28 AM | cbc3913cd4e3 | 31e956305f0c | b3140cc1d13b | Jonas Toth | [Misc] add new test case for for init | Sep 15 2018, 10:24 AM | b3140cc1d13b | 37bfc1c2c528 | 626bf6ba3643 dbc5a1d5087a | Jonas Toth | Merge branch 'master' into experiment_isolate_decl | Sep 15 2018, 5:53 AM | 626bf6ba3643 | f9cad6b17a78 | 35d92b69ded0 b840cb24f92b | Jonas Toth | Merge branch 'experiment_isolate_decl' of github.com:JonasToth/clang-tools… (Show More…) | Sep 15 2018, 5:52 AM | b840cb24f92b | b45c7d73a978 | 882ded177b20 | Jonas Toth | finalize current tests and trim right whitespace of last generated replacement | Sep 13 2018, 9:57 AM | 882ded177b20 | afb18e071261 | f26ccebdd52b | Jonas Toth | do proper transformations for normal vardecls | Sep 13 2018, 9:29 AM | f26ccebdd52b | 9b052898e826 | 2809fd4074df | Jonas Toth | [WIP][clang-tidy] initial ideas to isolate variable declarations (Show More…) | Sep 11 2018, 2:03 PM | 2809fd4074df | 6be031e08498 | 8005700361b4 | Jonas Toth | do a full transformation of the multi decl stmt | Sep 10 2018, 3:09 PM | 8005700361b4 | 5348fa672167 | 7e7d35c74090 | Jonas Toth | [Misc] work further on the experiment | Aug 24 2018, 12:42 PM | 7e7d35c74090 | 03189e803266 | bb007aae4a21 | Jonas Toth | [Feature] implement the last-element extraction version kinda ok | Aug 16 2018, 4:24 PM | bb007aae4a21 | 27069bf44c7c | 4fac53f8cbca | Jonas Toth | [Feature] initial commit for extract decl experiment | Aug 16 2018, 3:06 PM | 35d92b69ded0 | 7f7bc6d9ec41 | 202aff6a84b9 | Jonas Toth | do a full transformation of the multi decl stmt | Sep 10 2018, 3:09 PM | 202aff6a84b9 | d2fc20d08e80 | 81b8aaed06d4 | Jonas Toth | [Misc] work further on the experiment | Aug 24 2018, 12:42 PM | 81b8aaed06d4 | 5d9429f4dc04 | 1f24dd2432fc | Jonas Toth | [Feature] implement the last-element extraction version kinda ok | Aug 16 2018, 4:24 PM | 1f24dd2432fc | b3614dac0227 | e8f226ac6aad | Jonas Toth | [Feature] initial commit for extract decl experiment | Aug 16 2018, 3:06 PM |
|
The identifier reads strangely to my ears. How about: onlyDeclaresVariables()?