Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
AgeCommit message (Collapse)AuthorFilesLines
2019-05-28Bug 355174 - Added quickfix for miss cases/defaultMarco Stornelli11-3/+396
Change-Id: I4c815bd55e55d81456efa796453dd2f69a7c876a Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-26Bug 545956 - Added checker for virtual methods in ctor/dtorMarco Stornelli5-0/+477
Change-Id: I63b8a40447e9a5b6080e046030677a13607c4ea3 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-26Bug 355174 - Added cheker for missing case in a switchMarco Stornelli7-2/+358
Change-Id: I1ba1193186e275bed450eb7447eefd90dc09ebec Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18Bug 547179 - Fix reset suppression comment on multi selectionMarco Stornelli4-7/+17
Change-Id: I501a5f3ad5064ca8a8f7588c264fffffb256c4a8 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18Bug 468742 - Fix false positive no-virtual destructorMarco Stornelli2-0/+39
Change-Id: Id8d2efaf3f7a5ca74d160e4a726c08a71c6d7067 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18Bug 320786 - Fix false negative assignment in conditionMarco Stornelli2-0/+55
Fix bug with expression list Change-Id: I25b226ec7fd1edcfc40fe2ebcadbd3bdb2a6a5dd Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-16Bug 545702 - Added new checker to verify copyright informationMarco Stornelli7-0/+291
Change-Id: I57cad8565ce3c752a41f89473a95d5427d10cc8b Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-12Bug 461435 - Added options to format pointers in methodsMarco Stornelli2-3/+3
Rules used: 1) Default is right alignment to be compliant with built-in formatter rules; 2) Pointer with declarator without name will be always left alignment unless there's a nested declarator; 3) Return value of methods/functions is always left alignment; 4) If left alignment is selected, if space after comma is selected too for a declaration list, space is always forced after the comma. Change-Id: I82d5ad130e665e5357644cc59655a558f3fb732f Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-12Bug 458850 - Fix false positive for deferred classesMarco Stornelli3-7/+29
Change-Id: I46335a94d69ae8d4e5ae1c68857344d1dc513328 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08Bug 468749 - Fix false negative no virtual destructorMarco Stornelli2-4/+15
The checkers simply skipped nested classes. Change-Id: If464b229e586267d845768f9d96d3223328a8298 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08Bug 545952 - Added checker to check for goto usageMarco Stornelli5-0/+114
Change-Id: I5f7f157c5c208e686627bb90b001879953d83e70 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-21Bug 492878 - Fix no-return in function with gotoMarco Stornelli2-1/+15
Change-Id: I39f2605aa2e5b697015a2dfdb795f163e76095cf Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-15Bug 545699 - Add test to suite.Doug Schaefer1-0/+2
Change-Id: Id8542251403e6e2cc3931500b7f15a036b17a239
2019-04-15Bug 545699 - Added checker for C-style casts in C++Marco Stornelli4-0/+112
Change-Id: I38076599b354608a4b806f7b1d2ca1f6acc50a44 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-07Bug 546179 - Fix lack of warning for field referencesMarco Stornelli2-0/+20
With just a reference of the field even for another instance of the same class the warning wasn't provided to the user. Change-Id: Icb6ca008c2e61b8a762ecf31e4514cb0368c477d Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-04[releng] Fix baseline repo locationWilliam Riley1-1/+1
Change-Id: I21a46592111e60ce4425d1cb80377ab3c2511fad
2019-03-21Bug 545562 - Fix return checker check for template functionsMarco Stornelli1-0/+11
Change-Id: Ie5e3d4560cb3784f6c8393290d64794db56294d7 Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-21Bug 519105 - Return checker for functions with noreturnMarco Stornelli3-1/+30
Added check in control flow graph to check if a function has noreturn attribute. Change-Id: Ieaa5984a337493e3aac12c0f6fbeeb91a754358b Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04Bug 544980: Added a checker for using directive in header fileMarco Stornelli6-2/+169
Change-Id: Ic77fd2f7504e7a6cc4e15a2fdeb507724db9e74f Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-01[releng] Bump version to 9.8.0Jonah Graham1-1/+1
Change-Id: I3861d4c5d0eecaf9dd370f269a655e666b60561a
2019-02-19Bug 509751 - Process function template with non-dependent return type in ↵Bassem Girgis3-13/+48
ReturnChecker Change-Id: I8274affff8152dba35233a06cd8cdaef39cf00bb Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2019-02-19Bug 544539: Codan requires universal resolution from pluginsFelix Morgner2-4/+4
Change-Id: Ia7da2450d90e644d270928dacb86a2c470982c10 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=544539 Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2018-12-10[releng] Bump version to 9.7.0Jonah Graham1-1/+1
Change-Id: Icaa0b6acf73e3a19e0d102fa8ae784e631d8743a
2018-11-24Bug 540373: Update the compiler warnings/ignoresJonah Graham12-36/+36
The previous alignment of all the warnings/ignores led to too many warnings that weren't there before. This commit relaxes them a bit. The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs is still the "master" copy, with releng/scripts/check_code_cleanliness.sh containing the exceptions that apply to test plug-ins. Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-23Bug 540373: Format some Java files that were missedJonah Graham1-2/+2
Some files which has other cleanups applied meant they needed to be reformatted again. e.g. the removing of type parameters shortened some lines of code that meant the wrapping changed. Change-Id: I68ca09567b9530cc2a085c33923642b6de2ec77b
2018-11-23Bug 540373: Cleanup: Remove trailing whitespace in properties filesJonah Graham5-10/+10
Command used: # Remove space at eol in comments find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} + # Remove space at eol in blank lines find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} + # Replace escaped spaces at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} + # Replace unescaped spaces at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} + # Replace escaped tabs at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} + # Replace unescaped tabs at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} + # Stage all changes git add -A . # trim any remaining whitespace and then identify and fixup # manually # Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties # needed this due to missing newline at end of the file find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} + Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
2018-11-22Bug 540373: Remove '(non-Javadoc)' commentsJonah Graham30-371/+0
These were inserted in the past automatically by Eclipse but newer tooling makes them redundant. These were removed by doing a global find/replace on *.java files using the following regular expression: \t/\*\n\t \* \(non-Javadoc\)[^/]*/\n Change-Id: I59d3248020f10934fde1dda5b5a31e20bb188e19
2018-11-22Bug 540373: Cleanup: Remove redundant semicolonsJonah Graham1-1/+1
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Remove redundant semicolons and completing the wizard Change-Id: I3d3175cfdfadec4f815c551d486e42c9f57b80ce
2018-11-22Bug 540373: Cleanup: Remove redundant type argumentsJonah Graham34-64/+64
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Remove redundant type arguments and completing the wizard Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
2018-11-22Bug 540373: Cleanup: Remove unnecessary castsJonah Graham1-1/+1
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Remove unnecessary casts and completing the wizard Change-Id: I287d4066b12fc19d7f73a016e11c9405abb4ceb9
2018-11-22Bug 540373: Cleanup: Add missing annotationsJonah Graham7-0/+11
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Add missing Annotations - and selecting all three types: - @Override - @Override on interface methods - @Deprecated and completing the wizard Change-Id: I5d367dacb04327107f25e147edc08efc4eb1c2fe
2018-11-22Bug 540373: Cleanup: Organize ImportsJonah Graham8-28/+30
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Organize Imports and completing the wizard Change-Id: Ia7b305a4c967d0e6f4e8fb8c1041e7028b24006c
2018-11-22Bug 540373: Cleanup: Format & Remove trailing whitespaceJonah Graham184-1119/+1201
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22Bug 540373: Standard .settings auto appliedJonah Graham50-337/+4950
The releng/scripts/apply_jdt_prefs_to_all_projects.sh was run to copy standard settings to all other projects. Change-Id: I4436c947d7f0142f56b709e661379c3eb54f666b
2018-11-22Bug 540373: Remove invalid javadoc API tagsJonah Graham1-1/+0
Change-Id: I240bbe08666b89861fe132c6384174be7883c022
2018-11-22Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.shJonah Graham304-1082/+2084
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22Bug 540371: normalize files before applying EPLv2Jonah Graham1-3/+3
Change-Id: I8bfd427bba1df18579d6d5e58ad1e5d704485050
2018-11-20Bug 540373: Normalize newlines with .gitattributesJonah Graham6-548/+548
There is also a new script to verify completeness of .gitattributes: releng/scripts/verify_gitattributes.sh Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
2018-10-30Bug 540610 - Add Automatic-Module-Name headerKarsten Thoms10-0/+10
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-10-29Bug 540112 - Perform C++14 return type deduction in ReturnCheckerNathan Ridge3-70/+36
As part of this change, ReturnChecker was refactored to compute the return type as an IType, which allowed for removal of some logic in ReturnChecker which duplicated CPPVisitor's type resolution work. Change-Id: I9cd8512164d650a5ee11d2e58fdae477e3c428a2
2018-10-23Bug 540367 - Increment version numbersWilliam Riley6-6/+6
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-12Bug 389577 - False positive "Unused static function"Marc-Andre Laperle2-8/+47
Add handling of constructor/destructor attributes and some improvement when functions were previously declared but not defined as used. Change-Id: I7537bc87c6c4bc5b294d8e15fe5b42c92b3f2974 Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-10Bug 519311 Handle delegating constructor in class templateBassem Girgis2-0/+22
- Fixed delegating constructor resolution for templated classes in ClassMembersInitializationChecker - Added a unit test for this bug Change-Id: Idb072ec05e66e0f10af53db8258459ad14f7f329 Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2018-10-10Bug 519473 Fixed member function calling with referencesBassem Girgis2-1/+25
Change-Id: I86d1dfacb6f842be688bfdaf2a6a0faf0ffade09 Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2018-10-01Bug 539307 - Have Codan test suites open files in C editor, not Generic EditorNathan Ridge1-3/+4
Change-Id: Icce2cfafe8e516ddad6abc30505bd4c67b062f47
2018-09-30Bug 539307 - Set correct project nature in Codan tests to fix wrong content typeMarc-Andre Laperle9-22/+72
When the lsp4e-cpp plugin is present, two content types are associated with .cpp extension. The lsp4e-cpp one is chosen because it happens to be first. Normally, the CDT C++ content type gets its priority boosted when the C++ project nature is present. Some Codan tests run on .cpp files but without the C++ project nature so the files are of wrong content type and the tests fail. Once the nature is fixed, some tests were failing because they should run on C files but loadCode was not loading them as C++ files because of the project nature. Change-Id: I61b77d409e81c3cf78e60adf0c77a9bf976ac9d5 Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-27Bug 539145 - Avoid NPE in ↵Nathan Ridge1-0/+2
CaseBreakQuickFixFallthroughAttribute.validPositionForFallthrough() Change-Id: I8a53691f91411bf88f95112d99c1967b1238515a
2018-09-27Bug 539145 - Avoid opening an editor during ↵Nathan Ridge2-11/+9
CaseBreakQuickFixFallthroughAttribute.isApplicable() Change-Id: I82c5b345cfb017680d06f3caeff0c9839780ee68
2018-09-15Bug 538266 - NPE in QuickFixCreateNewClass.isApplicable()Nathan Ridge1-1/+3
Change-Id: If20b46da95f58e93ba46ea6f4386e841609f4159
2018-07-25Bug 537272 - Offer "Create local variable" based on compiler errorsFelix Morgner2-0/+5
This patch introduces an additional message pattern for the CreateLocalVariable QuickFix that matches GCC's C++ error message for undefined entities. Change-Id: I44d6579d41d9c93dc23366907fa52caf1c6f3b21 Signed-off-by: Felix Morgner <fmorgner@hsr.ch>

Back to the top