]> granicus.if.org Git - clang/commit
Adjusted the semantics of assign checking in IdempotentOperationChecker
authorTom Care <tom.care@uqconnect.edu.au>
Mon, 30 Aug 2010 19:25:43 +0000 (19:25 +0000)
committerTom Care <tom.care@uqconnect.edu.au>
Mon, 30 Aug 2010 19:25:43 +0000 (19:25 +0000)
commit6216dc0c5b9071b4c10f78718a64ca916c00a384
tree926413ffba1863c4a578a96fc510a708e3705f23
parent6cf750298d3621d8a10a6dd07fcee8e274b9d94d
Adjusted the semantics of assign checking in IdempotentOperationChecker
- Fixed a regression where assigning '0' would be reported
- Changed the way self assignments are filtered to allow constant testing
- Added a test case for assign ops
- Fixed one test case where a function pointer was not considered constant
- Fixed test cases relating to 0 assignment

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/IdempotentOperationChecker.cpp
test/Analysis/func.c
test/Analysis/idempotent-operations.c
test/Analysis/misc-ps-region-store.m
test/Analysis/misc-ps.m