-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in search record/namespace term builder for depth 2
Summary: oops typo. And no specific test for that case. Reviewed By: pepeiborra Differential Revision: D68191642 fbshipit-source-id: 640a83835c49a9f8644f37a7dd8e25c60ef2ed78
- Loading branch information
1 parent
f0e0aa0
commit d8b11e3
Showing
3 changed files
with
105 additions
and
3 deletions.
There are no files selected for viewing
98 changes: 97 additions & 1 deletion
98
...codemarkup/tests/clang/xrefs/namespace-nesting/search_by_scope_nesting_fun_in_rec_rec.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,97 @@ | ||
[ "@generated" ] | ||
[ | ||
"@generated", | ||
{ | ||
"key": { | ||
"searchcase": 0, | ||
"name": "fooCInBinB", | ||
"scope": [ "classBinNSB", "classCinNSB" ], | ||
"entity": { | ||
"cxx": { | ||
"defn": { | ||
"function_": { | ||
"key": { | ||
"declaration": { | ||
"key": { | ||
"name": { | ||
"key": { | ||
"name": { "key": { "name": { "key": "fooCInBinB" } } }, | ||
"scope": { | ||
"recordWithAccess": { | ||
"record": { | ||
"key": { | ||
"name": { "key": "classCinNSB" }, | ||
"scope": { | ||
"recordWithAccess": { | ||
"record": { | ||
"key": { | ||
"name": { "key": "classBinNSB" }, | ||
"scope": { | ||
"namespace_": { | ||
"key": { | ||
"name": { "key": "NsB" }, | ||
"parent": { | ||
"key": { | ||
"name": { "key": "NsA" } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"access": 2 | ||
} | ||
} | ||
} | ||
}, | ||
"access": 2 | ||
} | ||
} | ||
} | ||
}, | ||
"signature": { | ||
"key": { "returns": { "key": "int" }, "parameters": [ ] } | ||
}, | ||
"method": { | ||
"isVirtual": false, | ||
"isConst": false, | ||
"isVolatile": false, | ||
"refQualifier": 0 | ||
}, | ||
"source": { | ||
"file": { "key": "test.cpp" }, | ||
"lineBegin": 21, | ||
"columnBegin": 9, | ||
"lineEnd": 21, | ||
"columnEnd": 39 | ||
} | ||
} | ||
}, | ||
"isInline": false | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"location": { | ||
"name": "fooCInBinB", | ||
"file": { "key": "test.cpp" }, | ||
"location": { | ||
"range": { | ||
"file": { "key": "test.cpp" }, | ||
"lineBegin": 21, | ||
"columnBegin": 9, | ||
"lineEnd": 21, | ||
"columnEnd": 39 | ||
} | ||
}, | ||
"destination": { | ||
"file": { "key": "test.cpp" }, | ||
"span": { "start": 427, "length": 10 } | ||
} | ||
}, | ||
"kind": 13, | ||
"language": 0 | ||
} | ||
} | ||
] |
8 changes: 7 additions & 1 deletion
8
...odemarkup/tests/clang/xrefs/namespace-nesting/search_by_scope_nesting_fun_in_rec_rec.perf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
{ | ||
"@generated": null, | ||
"facts_searched": { "cxx1.Name.5": 5, "cxx1.QName.5": 1 }, | ||
"facts_searched": { | ||
"cxx1.DeclarationNameSpan.5": 1, | ||
"cxx1.FunctionDeclarationByNameScope.5": 1, | ||
"cxx1.FunctionDefinition.5": 1, | ||
"cxx1.Name.5": 5, | ||
"cxx1.QName.5": 1 | ||
}, | ||
"full_scans": [ ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters