forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the
AlwaysIncludeTypeForNonTypeTemplateArgument
into prin…
…ting policy If enabled, it will ensure that full type name is always printed. This should fix issue reported here: llvm#57562 Currently, I've disabled the policy by default, as enabling it makes some tests fail, notably: - CodeGenCXX/debug-info-template.cpp - SemaCXX/constexpr-printing.cpp - SemaCXX/cxx2a-nttp-printing.cpp - SemaTemplate/temp_arg_string_printing.cpp However, my opinion is that those tests should be updated and new policy always enabled, to mimic GCC's behavior. I've added 2 new tests in AST/TypePrinterTest.cpp, one of which actually demonstrates the issue I've had in the first place (which was also reported on GitHub). Differential Revision: https://reviews.llvm.org/D134453
- Loading branch information
Showing
4 changed files
with
101 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