Loading clang/lib/Analysis/CalledOnceCheck.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -936,8 +936,9 @@ private: /// Return true if the only parameter of the function is conventional. static bool isOnlyParameterConventional(const FunctionDecl *Function) { return Function->getNumParams() == 1 && hasConventionalSuffix(Function->getName()); IdentifierInfo *II = Function->getIdentifier(); return Function->getNumParams() == 1 && II && hasConventionalSuffix(II->getName()); } /// Return true/false if 'swift_async' attribute states that the given Loading clang/test/SemaObjCXX/warn-called-once.mm 0 → 100644 +7 −0 Original line number Diff line number Diff line // RUN: %clang_cc1 -verify -fsyntax-only -Wcompletion-handler %s // expected-no-diagnostics class HasCtor { HasCtor(void *) {} }; Loading
clang/lib/Analysis/CalledOnceCheck.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -936,8 +936,9 @@ private: /// Return true if the only parameter of the function is conventional. static bool isOnlyParameterConventional(const FunctionDecl *Function) { return Function->getNumParams() == 1 && hasConventionalSuffix(Function->getName()); IdentifierInfo *II = Function->getIdentifier(); return Function->getNumParams() == 1 && II && hasConventionalSuffix(II->getName()); } /// Return true/false if 'swift_async' attribute states that the given Loading
clang/test/SemaObjCXX/warn-called-once.mm 0 → 100644 +7 −0 Original line number Diff line number Diff line // RUN: %clang_cc1 -verify -fsyntax-only -Wcompletion-handler %s // expected-no-diagnostics class HasCtor { HasCtor(void *) {} };