[PATCH] D56916: Fix crash due to ObjCPropertyDecl

David Goldman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 22 08:10:47 PST 2019


dgoldman added a comment.

In D56916#1365357 <https://reviews.llvm.org/D56916#1365357>, @ilya-biryukov wrote:

> Good point, @aaron.ballman! @dgoldman, could you please add a test case?


Unfortunately I can't get ninja check-clangd to build:

  /Users/davg/dev/llvm/source/llvm/tools/clang/tools/extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp:54:27: error: no matching member function for call to 'getThisType'
          ActualMemberDecl->getThisType(ActualMemberDecl->getASTContext())
          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
  /Users/davg/dev/llvm/source/llvm/tools/clang/include/clang/AST/DeclCXX.h:2182:12: note: candidate function not viable: requires 0 arguments, but 1 was provided
    QualType getThisType() const;
             ^
  /Users/davg/dev/llvm/source/llvm/tools/clang/include/clang/AST/DeclCXX.h:2184:19: note: candidate function not viable: requires 2 arguments, but 1 was provided
    static QualType getThisType(const FunctionProtoType *FPT,
                    ^
  1 error generated.
  [1230/1512] Building CXX object tools/clang/tools/extra/clang-tidy/cert/CMakeFiles/clangTidyCERTModule.dir/CERTTidyModule.cpp.o
  ninja: build stopped: subcommand failed.


Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56916/new/

https://reviews.llvm.org/D56916





More information about the cfe-commits mailing list