Commit Graph

26728 Commits

Author SHA1 Message Date
Oliver Stöneberg 0ec2d84f1a
optimized suppression lookups a bit when no suppressions exist () 2023-03-03 18:37:09 +01:00
Oliver Stöneberg 5af6ca6637
made `Platform` a member of `Settings` instead of inheriting from it / cleanups () 2023-03-03 18:36:27 +01:00
Oliver Stöneberg 8023eff7c0
removed `TokenList::getSettings()` and replaced usage in ValueFlow with provided settings () 2023-03-03 18:31:38 +01:00
Oliver Stöneberg f9c67ef907
fixed `functionConst` selfcheck warnings () 2023-03-03 11:02:51 +01:00
Oliver Stöneberg b70e1d5461
avoid some unchecked pointer dereferences () 2023-03-02 22:05:41 +01:00
chrchr-github 215124461e
Fix FN functionConst with operator usage () 2023-03-02 21:51:58 +01:00
Oliver Stöneberg 381361629e
Preprocessor: removed unreachable `ConfigurationNotChecked` finding () 2023-03-02 21:50:57 +01:00
Oliver Stöneberg bd1ae69b00
cleaned up includes based on `include-what-you-use` () 2023-03-02 21:50:14 +01:00
Oliver Stöneberg 68504a0f51
bisect: handle crashes as "bad" / added hot-patch for 1.88/1.89 compilation failures / added expected output as optional parameter () 2023-03-02 21:49:05 +01:00
Oliver Stöneberg 8f5f06add7
some `Tokenizer` construction and related other cleanups () 2023-03-02 21:48:14 +01:00
Oliver Stöneberg dac578e8b9
ValueFlow: avoid unnecessary `Value` copies () 2023-03-02 21:46:23 +01:00
chrchr-github 491299048b
Amend fix for Function call not recognized () 2023-03-02 21:45:15 +01:00
Oliver Stöneberg 7c73ecfec7
CI-windows.yml: removed Qt 6.3 from build matrix () 2023-03-02 21:43:58 +01:00
Oliver Stöneberg fd98e006a7
fixed (Qt 6 lupdate reports "ko" (Korean) "language is not recognized") () 2023-03-02 21:21:23 +01:00
Oliver Stöneberg 75619db1d5
symboldatabase.cpp: use `Keywords` / added TODOs () 2023-03-02 21:20:56 +01:00
chrchr-github 51c5a79150
Fix FP ctuArrayIndex with unknown typedef () 2023-03-02 21:19:53 +01:00
chrchr-github 7f62d8ff98
Fix internalAstError with immediately instantiated enum () 2023-03-02 21:17:39 +01:00
Oliver Stöneberg 3ec4da0f8a
improved library loading in tests () 2023-03-02 21:10:51 +01:00
Oliver Stöneberg e99d7c6531
fixed some `-Wdeprecated-copy-dtor` Clang compiler warnings () 2023-03-02 21:02:29 +01:00
chrchr-github 072e822020
Set ValueType for free function returning iterator () 2023-03-02 21:01:20 +01:00
Oliver Stöneberg 514e605598
CI-unixish.yml: fixed and enabled all `build` steps for macos () 2023-03-02 20:54:30 +01:00
Oliver Stöneberg b53bb36798
disallow move/copy of `ScopedFile` () 2023-03-02 20:44:29 +01:00
Daniel Marjamäki cfba046408 Fixed (function pointer => false negatives (ast? valueflow?)) 2023-03-02 20:08:22 +01:00
chrchr-github 17e776861e
Get type from auto with index operator () 2023-02-28 15:05:45 +01:00
Daniel Marjamäki 80050b11dd SymbolDatabase: Fix handling of function pointer arguments 2023-02-27 15:10:25 +01:00
Daniel Marjamäki 65fc31cba9 Tokenizer: tweaked simplification of function pointers. Argument types are kept. 2023-02-26 18:03:24 +01:00
chrchr-github a0cc35e3fa
Remove simplifyQtSignalsSlots(), update qt.cfg () 2023-02-25 15:58:57 +01:00
chrchr-github 29b651f264
Partial fix for checkLibraryFunction warning for smartpointer in container () 2023-02-25 15:47:02 +01:00
Oliver Stöneberg 36192c50f6
removed unnecessary OSS-Fuzz related builds from CI () 2023-02-25 15:40:12 +01:00
Daniel Marjamäki af44659e06 runformat 2023-02-25 10:23:45 +01:00
Oliver Stöneberg 5d9c157f5e
keywords.cpp: fixed accidental omissions in C++03 keywords / added missing keywords in latest standards () 2023-02-25 00:19:04 +01:00
Oliver Stöneberg a250e6b569
enabled and mitigated `-Wunreachable-code` Clang warnings () 2023-02-24 21:57:44 +01:00
Oliver Stöneberg 634881db61
testrunner: moved exception handling to `TestFixture::run()` and made it unconditional () 2023-02-24 21:46:07 +01:00
chrchr-github 92b42255da
Fix FN functionConst () 2023-02-24 21:44:57 +01:00
Oliver Stöneberg 674231ae52
added clean C/C++ keyword lists and use them in `TokenList` () 2023-02-24 21:43:27 +01:00
Oliver Stöneberg da09a92b0a
test/cfg: enabled `information` and `--inconclusive` in all cases / some cleanups () 2023-02-24 21:37:56 +01:00
Oliver Stöneberg 8583fcf96e
avoid more cases of returning non-const pointers from `const` objects () 2023-02-24 21:22:08 +01:00
chrchr-github d65cc696b0
Get type from auto with scope () 2023-02-24 21:05:26 +01:00
chrchr-github a030970160
Fix FP constParameter with const/non-const overload / FP functionConst () 2023-02-24 07:05:18 +01:00
Oliver Stöneberg 535ab69fa0
triage_version.py: extend template for 1.x versions with error ID () 2023-02-24 07:02:51 +01:00
Mateusz Michalak 1bfa20ecf9
Add ignoring of .cache directory () 2023-02-24 06:50:03 +01:00
chrchr-github d1e1f951df
Don't show checkLibraryNoReturn for functions with visible declaration (, ) () 2023-02-24 06:49:28 +01:00
chrchr-github 103ff907b6
Fix Broken AST with brace-init and bitwise and () 2023-02-24 06:31:20 +01:00
Daniel Marjamäki e5a22e3436 Revert "improved `Path` handling of mixed separators ()"
This reverts commit 0797867758.
2023-02-24 06:21:02 +01:00
chrchr-github 50c8a0dbe1
Fix pop_back on empty container is UB () 2023-02-24 01:10:19 +01:00
Oliver Stöneberg ce3ba5c015
token.cpp: removed unreachable cases from `multiComparePercent()` () 2023-02-23 22:58:10 +01:00
chrchr-github 96887c8130
Fix FN nullPointer with unnamed parameter () 2023-02-23 22:56:03 +01:00
Oliver Stöneberg edc9cfba94
sped up `TestIO` a bit by only processing code as C++ if necessary () 2023-02-23 22:53:39 +01:00
Oliver Stöneberg 0797867758
improved `Path` handling of mixed separators () 2023-02-23 22:34:05 +01:00
Paul Fultz II 346ecdb53a
Improve valueflow after pushing to container () 2023-02-23 18:05:31 +01:00