Ian Lynagh
|
3157fcdf79
|
C++: Add some BAD annotations to SloppyGlobal test
|
2025-08-15 12:07:09 +01:00 |
|
Ian Lynagh
|
bfd4c41ed9
|
C++: SloppyGlobal: Accept test changes
We no longer alert on template instantiations, just the template.
|
2025-08-15 11:24:19 +01:00 |
|
Ian Lynagh
|
0b68c1c974
|
C++: Add some more tests for SloppyGlobal
|
2025-08-15 11:20:31 +01:00 |
|
Jeroen Ketema
|
46b230ae92
|
C++: Simplify more semmle-extractor-options
This will allow us to drop a number of special cases from the
extractor.
|
2024-12-20 16:01:19 +01:00 |
|
Jeroen Ketema
|
8d59159691
|
C++: Fix qlref file
|
2024-11-26 15:35:52 +01:00 |
|
Jeroen Ketema
|
d9b278de66
|
C++: Promote cpp/guarded-free
|
2024-11-26 11:45:55 +01:00 |
|
Geoffrey White
|
73f977c98c
|
Merge pull request #10510 from geoffw0/staticfn
C++: Fix FPs for cpp/unused-static-function in files that were not extracted completely
|
2022-10-18 14:53:49 +01:00 |
|
Nora Dimitrijević
|
949d3e13fe
|
Merge branch 'main' into cpp/comma-before-misleading-indentation
|
2022-10-12 13:25:22 +02:00 |
|
Nora Dimitrijević
|
93c01371c3
|
C++: no parens in select message
Debatable; see comment thread in PR.
|
2022-10-12 13:01:37 +02:00 |
|
erik-krogh
|
66c9705502
|
fix some more style-guide violations in the alert-messages
|
2022-10-07 11:19:46 +02:00 |
|
Nora Dimitrijević
|
28606c561d
|
C++: Simplify normalizeExpr
This has a comparable but different set of FPs as the previous version.
But arguably it's an improvement.
|
2022-09-30 14:35:54 +02:00 |
|
Nora Dimitrijević
|
c37c6a004e
|
Merge branch 'main' into cpp/comma-before-misleading-indentation
|
2022-09-30 00:28:33 +02:00 |
|
Nora Dimitrijević
|
6eac4f52d9
|
C++: Accept Test Output
Some tricky FPs are preserved in there.
|
2022-09-30 00:13:23 +02:00 |
|
Nora Dimitrijević
|
891bc342be
|
C++: Fix another implicit/explicit this FP
|
2022-09-29 18:42:23 +02:00 |
|
Nora Dimitrijević
|
28bd591107
|
C++: Fix explicit this-> FP.
|
2022-09-29 17:04:11 +02:00 |
|
Nora Dimitrijević
|
29d7c0e21b
|
C++: Exclude commas in if-conditions.
|
2022-09-29 16:29:57 +02:00 |
|
Nora Dimitrijević
|
64903336f7
|
C++: Exclude all parenthesized CommaExprs.
|
2022-09-29 15:49:29 +02:00 |
|
Nora Dimitrijević
|
909b36a078
|
C++: Fix implicit-this FP, uncovered non-funptr FP
|
2022-09-29 13:14:36 +02:00 |
|
Nora Dimitrijević
|
19a9c5d7d3
|
C++: Identified another real-life FP
|
2022-09-28 21:19:45 +02:00 |
|
Nora Dimitrijević
|
96c73bcb19
|
C++: Fix FP: bad Location for FieldAccess exprs
|
2022-09-28 20:37:22 +02:00 |
|
Nora Dimitrijević
|
6d5df14547
|
C++: Remove arguable FPs re: sizeof/decltype
|
2022-09-28 20:01:14 +02:00 |
|
Nora Dimitrijević
|
592bc18a97
|
C++: Reduce FPs by excluding all commas in loop heads
This leads to a 50% reduction of alerts in MRVA 1000.
|
2022-09-28 19:38:41 +02:00 |
|
Nora Dimitrijević
|
823b0109f0
|
C++: Mark FPs that are hard to solve w/o source code
|
2022-09-28 16:20:13 +02:00 |
|
Nora Dimitrijević
|
0128b1702e
|
C++: Fix "LHS-end = RHS-begin" FP
|
2022-09-28 15:36:01 +02:00 |
|
Nora Dimitrijević
|
e7c1fadd94
|
C++: Fix member-call- and C-cast-related FPs
|
2022-09-28 15:02:22 +02:00 |
|
Nora Dimitrijević
|
cacf78838c
|
C++: Tests (w/ FPs) from MRVA top 1000 run
|
2022-09-27 18:48:32 +02:00 |
|
erik-krogh
|
33165f4f55
|
CPP: update expected output
|
2022-09-23 14:45:59 +02:00 |
|
Nora Dimitrijević
|
dca13f5c89
|
C++: Initial cpp/comma-before-misleading-indentation
MRVA top 1000 run at: https://github.com/github/semmle-code/actions/runs/3106828111
|
2022-09-22 17:44:18 +02:00 |
|
Nora Dimitrijević
|
f1efc76e8c
|
C++: Initial commit of cpp/comma-before-missing-indentation
|
2022-09-22 17:06:04 +02:00 |
|
Geoffrey White
|
518b45bc8e
|
C++: Add two more test cases.
|
2022-09-21 15:41:27 +01:00 |
|
Geoffrey White
|
2756c0e7af
|
C++: Don't report results in files with compilation errors.
|
2022-09-21 10:45:28 +01:00 |
|
Geoffrey White
|
c599b02e98
|
C++: Add test case.
|
2022-09-20 15:23:13 +01:00 |
|
erik-krogh
|
1a7d3ee831
|
update expected output after changing queries
|
2022-08-23 12:35:32 +02:00 |
|
erik-krogh
|
7e0bd5bde4
|
update expected output of tests
|
2022-08-22 21:41:47 +02:00 |
|
Jeroen Ketema
|
d19504fca2
|
C++: Add cpp/unused-local-variable test case with switch initializer
This is similar to the test case with the `if` initializer, and we should
not forget about it once we support `if` initialization.
|
2022-04-05 18:27:53 +02:00 |
|
Jeroen Ketema
|
46821fe136
|
Update C++ variable hiding test
Structured bindings are now handled better, so the false negative
related to structured bindings is now a true positive.
|
2022-02-10 10:58:32 +01:00 |
|
Jeroen Ketema
|
9194af9b15
|
Do not report "Declaration hides variable" for unnamed variables
|
2022-01-26 15:10:37 +01:00 |
|
Jeroen Ketema
|
10a94cfa45
|
Add test for structured binding declaration hiding variable
|
2022-01-26 15:08:50 +01:00 |
|
Jeroen Ketema
|
b380ba0d8f
|
Add semmle-extractor-options: -std=c++17 to test
|
2022-01-26 15:05:21 +01:00 |
|
Geoffrey White
|
e9bde9b711
|
C++: Work around issue with ConditionalDeclExpr.
|
2020-11-02 15:46:38 +00:00 |
|
Geoffrey White
|
79bda0055c
|
C++: Work around issue with 'Unknown literal'.
|
2020-11-02 15:46:36 +00:00 |
|
Geoffrey White
|
35f4646ee0
|
C++: Add test cases for UnusedLocals.
|
2020-11-02 10:40:42 +00:00 |
|
Geoffrey White
|
2472b40b31
|
C++: Fix test comments.
|
2020-09-04 14:37:23 +01:00 |
|
Geoffrey White
|
2d7552358b
|
C++: Put in a better fix.
|
2020-09-03 18:51:57 +01:00 |
|
Geoffrey White
|
a1c7fd8fec
|
C++: Remove the workaround for CPP-331.
|
2020-09-03 18:51:21 +01:00 |
|
Geoffrey White
|
5150bf30e7
|
C++: Add another test case inspired by CPP-331.
|
2020-09-03 18:50:11 +01:00 |
|
Geoffrey White
|
1483306c4c
|
C++: Add more tests.
|
2020-09-03 18:39:50 +01:00 |
|
Geoffrey White
|
0c4eabca98
|
C++: Merge two tests of UnusedStaticFunctions from the library-tests into the existing test in query-test.
|
2020-01-23 11:05:47 +00:00 |
|
Geoffrey White
|
3a3bef3a03
|
CPP: Add the new Japanese era.
|
2019-09-03 18:28:24 +01:00 |
|
Geoffrey White
|
bac39e6288
|
CPP: Add test cases.
|
2019-09-03 17:46:30 +01:00 |
|