Added tests to check aliasing:
- scalars through records;
- enums through records;
- records through scalars;
- records through enums;
- records through records;
- through multiple levels of aliasing
- in different syntax contexts.
Paths
| Differential D117035
[analyzer] Added more tests for scalars, enums and records for StrictAliasingChecker Needs ReviewPublic Authored by ASDenysPetrov on Jan 11 2022, 9:37 AM.
Details
Diff Detail Event TimelineHerald added subscribers: manas, jeroen.dobbelaere, dkrupp and 7 others. · View Herald TranscriptJan 11 2022, 9:37 AM ASDenysPetrov added a child revision: D117033: [analyzer] Added more tests for scalars and enums for StrictAliasingChecker.Jan 11 2022, 9:38 AM ASDenysPetrov removed a child revision: D117033: [analyzer] Added more tests for scalars and enums for StrictAliasingChecker. ASDenysPetrov added a parent revision: D117033: [analyzer] Added more tests for scalars and enums for StrictAliasingChecker.
Revision Contents
Diff 398990 clang/test/Analysis/Checkers/StrictAliasingChecker/enum-ptr-to-record.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/enum-var-to-record.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/multi-casts.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/record-ptr-to-enum.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/record-ptr-to-record.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/record-ptr-to-scalar.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/record-var-to-enum.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/record-var-to-record.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/record-var-to-scalar.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/records.h
clang/test/Analysis/Checkers/StrictAliasingChecker/scalar-ptr-to-record.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/scalar-var-to-record.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/various-indirection.cpp
|