Index: lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp =================================================================== --- lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -569,14 +569,8 @@ } static std::string getFunctionName(const Decl *D) { - if (const ObjCMethodDecl *ID = dyn_cast(D)) { - return ID->getSelector().getAsString(); - } - if (const FunctionDecl *ND = dyn_cast(D)) { - IdentifierInfo *II = ND->getIdentifier(); - if (II) - return II->getName(); - } + if (const NamedDecl *ND = dyn_cast(D)) + return ND->getQualifiedNameAsString(); return ""; } Index: test/Analysis/analyzeOneFunction.m =================================================================== --- test/Analysis/analyzeOneFunction.m +++ test/Analysis/analyzeOneFunction.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyze-function="myMethodWithY:withX:" -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -verify %s +// RUN: %clang_cc1 -analyze -analyze-function="Test1::myMethodWithY:withX:" -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -verify %s typedef signed char BOOL; typedef unsigned int NSUInteger;