cpplint.py fixed for ALLOW_SHARED_PTR_ONLY_CREATION. Added check if macros
was inserted at the beginning or end of the class.

Change-Id: I6d818f8e10e22559e681d18d825448483d37e98c