in reply to Why is the grep failing?

Case aside, there's only two possible strings it can match:

AEEatomic.h AEEatomic.h<LF>
The string you tried to match
./data/basic-socket-test/basic-socket-test.cpp:#include "AEEatomic.h"
is neither. Perhaps you wanted
/\Q$line\E/i