#
42b5037c |
| 16-Feb-2024 |
Balázs Kéri <balazs.keri@ericsson.com> |
[clang][analyzer] Simplify code of StreamChecker (NFC). (#79312)
A class is added that contains common functions and data members that are used in many of the "eval" functions. This results in short
[clang][analyzer] Simplify code of StreamChecker (NFC). (#79312)
A class is added that contains common functions and data members that are used in many of the "eval" functions. This results in shorter "eval" functions and less code repetition.
show more ...
|
Revision tags: llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init |
|
#
45c84f80 |
| 23-Jan-2024 |
Jie Fu <jiefu@tencent.com> |
[clang][analyzer] Remove unused variable in StreamChecker.cpp (NFC)
llvm-project/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp:1125:17: error: unused variable 'ASTC' [-Werror,-Wunused-variabl
[clang][analyzer] Remove unused variable in StreamChecker.cpp (NFC)
llvm-project/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp:1125:17: error: unused variable 'ASTC' [-Werror,-Wunused-variable] 1125 | ASTContext &ASTC = C.getASTContext(); | ^~~~ 1 error generated.
show more ...
|
#
ea75542d |
| 23-Jan-2024 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support 'getdelim' and 'getline' in StreamChecker (#78693)
|
#
0845514d |
| 22-Jan-2024 |
Balázs Kéri <balazs.keri@ericsson.com> |
[clang][analyzer] Add function 'fscanf' to StreamChecker. (#78180)
|
#
8550e884 |
| 12-Jan-2024 |
Balázs Kéri <balazs.keri@ericsson.com> |
[clang][analyzer] Add function 'fprintf' to StreamChecker. (#77613)
[clang][analyzer] Add function 'fprintf' to StreamChecker.
|
#
19081f4a |
| 11-Jan-2024 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (#77580)
|
#
8f78dd4b |
| 10-Jan-2024 |
Balázs Kéri <balazs.keri@ericsson.com> |
[clang][analyzer] Add function 'ungetc' to StreamChecker. (#77331)
`StdLibraryFunctionsChecker` is updated too with `ungetc`.
|
#
18c0f59b |
| 04-Jan-2024 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support 'fdopen' in the StreamChecker (#76776)
|
#
73948ec6 |
| 21-Dec-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support `fflush` in the StreamChecker (#74296)
|
#
46997892 |
| 06-Dec-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer][NFC] Supplement comments in `evalFtell` of StreamChecker (#74291)
|
#
47df664c |
| 29-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support `fgets` in the SteamChecker (#73638)
|
#
95a47bca |
| 28-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support `fputs` in the StreamChecker (#73335)
|
Revision tags: llvmorg-17.0.6 |
|
#
53578e5c |
| 23-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support `fgetc` in StreamChecker (#72627)
|
#
917a550f |
| 15-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][Analyzer][NFC] Use condition type for comparison in several checkers (#72358)
|
#
d5af076a |
| 15-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Support `fputc` in StreamChecker (#71518)
|
Revision tags: llvmorg-17.0.5 |
|
#
1b45fe5c |
| 07-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer][NFC] Remove redundant code in StreamChecker (#71394)
|
#
32521bb3 |
| 02-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer] Restrict 'fopen' & 'tmpfile' modeling to POSIX versions in StreamChecker (#70540)
'tmpfile' has only one form that it has no argument.
|
#
e98f3bff |
| 02-Nov-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer]][NFC] Simplify method 'ensureStreamNonNull' of StreamChecker (#70927)
The passed in parameter 'State' is always identical to 'C.getState()'.
|
Revision tags: llvmorg-17.0.4 |
|
#
00b79799 |
| 25-Oct-2023 |
Ben Shi <2283975856@qq.com> |
[clang][analyzer][NFC] Combine similar methods of StreamChecker (#70170)
Methods StreamChecker::preFread and StreamChecker::preFwrite are quite
similar, so they can be combined to StreamChecker::pr
[clang][analyzer][NFC] Combine similar methods of StreamChecker (#70170)
Methods StreamChecker::preFread and StreamChecker::preFwrite are quite
similar, so they can be combined to StreamChecker::preFreadFwrite.
show more ...
|
#
f9906508 |
| 21-Oct-2023 |
Ben Shi <2283975856@qq.com> |
[analyzer][NFC] Substitute operator() with lambda in StreamChecker
|
Revision tags: llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init |
|
#
2eefd196 |
| 30-Jun-2023 |
Balázs Kéri <balazs.keri@ericsson.com> |
[clang][analyzer] No end-of-file when seek to file begin.
If `fseek` is used with 0 position and SEEK_SET it sets the position to the start of the file. This should not cause FEOF (end of file) erro
[clang][analyzer] No end-of-file when seek to file begin.
If `fseek` is used with 0 position and SEEK_SET it sets the position to the start of the file. This should not cause FEOF (end of file) error. The case of an empty file is not handled for simplification. It is not exactly defined in what cases `fseek` produces the different error states. Normally feof should not happen at all because it is possible to set the position after the end of file, but previous tests showed that still feof (and any other error cases) can happen.
Reviewed By: donat.nagy
Differential Revision: https://reviews.llvm.org/D153363
show more ...
|
#
982a87ab |
| 22-Jun-2023 |
Manna, Soumi <soumi.manna@intel.com> |
[CLANG] Fix potential null pointer dereference bugs
This patch uses castAs instead of getAs which will assert if the type doesn't match and adds nullptr check if needed.
Also this patch improves th
[CLANG] Fix potential null pointer dereference bugs
This patch uses castAs instead of getAs which will assert if the type doesn't match and adds nullptr check if needed.
Also this patch improves the codes and passes I.getData() instead of doing a lookup in dumpVarDefinitionName() since we're iterating over the same map in LocalVariableMap::dumpContex().
Reviewed By: aaron.ballman, aaronpuchert
Differential Revision: https://reviews.llvm.org/D153033
show more ...
|
Revision tags: llvmorg-16.0.6 |
|
#
2c60f9c8 |
| 06-Jun-2023 |
Balázs Kéri <balazs.keri@ericsson.com> |
[clang][analyzer] Add report of NULL stream to StreamChecker.
The report of NULL stream was removed in commit 570bf97. The old reason is not actual any more because the checker dependencies are chan
[clang][analyzer] Add report of NULL stream to StreamChecker.
The report of NULL stream was removed in commit 570bf97. The old reason is not actual any more because the checker dependencies are changed. It is not good to eliminate a failure state (where the stream is NULL) without generating a bug report because other checkers are not able to find it later. The checker did this with the NULL stream pointer, and because this checker runs now before other checkers that can detect NULL pointers, the null pointer bug was not found at all.
Reviewed By: steakhal
Differential Revision: https://reviews.llvm.org/D152169
show more ...
|
Revision tags: llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init |
|
#
6ad0788c |
| 14-Jan-2023 |
Kazu Hirata <kazu@google.com> |
[clang] Use std::optional instead of llvm::Optional (NFC)
This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to remove #include "llvm/ADT/Optional.h".
This is p
[clang] Use std::optional instead of llvm::Optional (NFC)
This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to remove #include "llvm/ADT/Optional.h".
This is part of an effort to migrate from llvm::Optional to std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
show more ...
|
#
a1580d7b |
| 14-Jan-2023 |
Kazu Hirata <kazu@google.com> |
[clang] Add #include <optional> (NFC)
This patch adds #include <optional> to those files containing llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Option
[clang] Add #include <optional> (NFC)
This patch adds #include <optional> to those files containing llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with std::optional.
This is part of an effort to migrate from llvm::Optional to std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
show more ...
|