Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the definition to check if decl is provided by template
TypeToDeclAsWritten would not return the written definition in all cases. For templates, for example, the selected declaration could be the one where it was explicitly instantiatiated. That, in turn, affects the source location that is returned and ultimately the outcome of the function. Make sure to always get to the definition before using it to determine whether the template being instantiated provides the decl. Fixes #558
- Loading branch information
Showing
4 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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