File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static std::string GetSignature(const FunctionDecl *Target) {
51
51
const auto *TargetT =
52
52
llvm::dyn_cast_or_null<FunctionType>(Target->getType ().getTypePtr ());
53
53
54
- if (!TargetT)
54
+ if (!TargetT || !isa<CXXMethodDecl>(Target) )
55
55
return Signature;
56
56
57
57
if (TargetT->isConst ())
Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ void testNullDereferenceInDispatch() {
577
577
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
578
578
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
579
579
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
580
- // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>ad3081ebf0d1e26cc4edb01c88faa1c1 </string>
580
+ // CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>24947a6942bfa6030ab81e53a201d816 </string>
581
581
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
582
582
// CHECK-NEXT: <key>issue_context</key><string>testReturnZeroIfNil</string>
583
583
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>1</string>
You can’t perform that action at this time.
0 commit comments