Added tests to check aliasing:
- scalars through enums;
- enums through enums;
- enums through scalars.
Paths
| Differential D117033
[analyzer] Added more tests for scalars and enums for StrictAliasingChecker Needs ReviewPublic Authored by ASDenysPetrov on Jan 11 2022, 9:35 AM.
Details
Diff Detail Event TimelineHerald added subscribers: manas, jeroen.dobbelaere, dkrupp and 7 others. · View Herald TranscriptJan 11 2022, 9:35 AM ASDenysPetrov added a parent revision: D117035: [analyzer] Added more tests for scalars, enums and records for StrictAliasingChecker.Jan 11 2022, 9:38 AM ASDenysPetrov edited parent revisions, added: D114718: [analyzer] Implement a new checker for Strict Aliasing Rule.; removed: D117035: [analyzer] Added more tests for scalars, enums and records for StrictAliasingChecker.
Revision Contents
Diff 398988 clang/test/Analysis/Checkers/StrictAliasingChecker/enam-ptr-to-scalar.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/enam-var-to-scalar.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/enum-ptr-to-enum.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/enum-var-to-enum.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/enums.h
clang/test/Analysis/Checkers/StrictAliasingChecker/scalar-ptr-to-enum.cpp
clang/test/Analysis/Checkers/StrictAliasingChecker/scalar-var-to-enum.cpp
|