Actions
Bug #3920
closedMatching for typedef names any parameters wildcard works incorrectly sometimes
Start date:
02/06/2013
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
During reimplementing of 43_1a model after #3802 implementation it was noticed that a new version of model doesn't work. In fact this is due to incorrect matching for any parameters wildcard with typedef names. The minimal example I could obtain is
test4.c:
typedef short S;
typedef int I;
static inline void *func(S a, I b)
{
return a ? &a : &b;
}
test4.aspect:
before: execution(static inline void * func(.., I arg2, ..))
{
return 0;
}
(it is important that function argument types are typedefs and there is trailing '..' at the end of function signature in pointcut).
Updated by Evgeny Novikov almost 12 years ago
- Status changed from Open to Resolved
Fixed in 41f1440 of the CIF master branch and merge to the LDV tools master branch in commit b1e6d1b. Wait for QA testing results.
Updated by Evgeny Novikov almost 12 years ago
- Subject changed from Matching for any parameters wildcard works incorrectly sometimes to Matching for typedef names any parameters wildcard works incorrectly sometimes
I forgot to add that before typedef names coming from source and aspect file weren't compared at all. So that was the primary source of the given issue.
Another issue is that trailing '..' wildcard wasn't truncated and then considered as usual parameter.
Actions