Skip to content

NPE when parsing C attribute aligned(alignof...)

The following line seems to be in all programs from benchmarks/SoftwareSystems-uthash-MemSafety.set test set:

long long __max_align_ll __attribute__((__aligned__(__alignof__(long long))));

It seems argumentClause at ASTConverter.java:2272 is usually ASTToken which has meaningful getTokenCharImage(), but alignof comes as ASTTokenList which has this method returning null.

Here the list is ['__alignof__', '(', ['long', 'long'], ')'].