CodeQL library for C/C++
codeql/cpp-all 0.4.0-dev (changelog, source)

Member predicate FriendDecl::getADeclarationLocation

Gets the location of this friend declaration. The result is the location of the friend declaration itself, not the class or function that it refers to. Note: to get the target of the friend declaration, use getFriend.

Location getADeclarationLocation()