diff options
author | Alejandro Álvarez Ayllón <alejandro.alvarez@sonarsource.com> | 2024-02-20 10:25:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 10:25:01 +0100 |
commit | 37c19f9a35c5adad009ad82c608b9ca11155ec06 (patch) | |
tree | b726a93bcc8a67d39396f90edf261f709528ff60 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | c7799fadfe069c982ad27509e9de6d8d4b7b9007 (diff) | |
download | llvm-37c19f9a35c5adad009ad82c608b9ca11155ec06.zip llvm-37c19f9a35c5adad009ad82c608b9ca11155ec06.tar.gz llvm-37c19f9a35c5adad009ad82c608b9ca11155ec06.tar.bz2 |
[analyzer] UnixAPIMisuseChecker Get O_CREAT from preprocessor (#81855)
Now calling `open` with the `O_CREAT` flag and no mode parameter will
raise an issue in any system that defines `O_CREAT`.
The value for this flag is obtained after the full source code has been
parsed, leveraging `checkASTDecl`.
Hence, any `#define` or `#undefine` of `O_CREAT` following an `open` may
alter the results. Nevertheless, since redefining reserved identifiers
is UB, this is probably ok.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions