llvm-project/clang/test
David Blaikie 8bf1244538 DebugInfo: workaround for context-sensitive use of non-type-template-parameter integer suffixes
There's a nuanced check about when to use suffixes on these integer
non-type-template-parameters, but when rebuilding names for
-gsimple-template-names there isn't enough data in the DWARF to
determine when to use suffixes or not. So turn on suffixes always to
make it easy to match up names in llvm-dwarfdump --verify.

I /think/ if we correctly modelled auto non-type-template parameters
maybe we could put suffixes only on those. But there's also some logic
in Clang that puts the suffixes on overloaded functions - at least
that's what the parameter says (see D77598 and printTemplateArguments
"TemplOverloaded" parameter) - but I think maybe it's for anything that
/can/ be overloaded, not necessarily only the things that are overloaded
(the argument value is hardcoded at the various callsites, doesn't seem
to depend on overload resolution/searching for overloaded functions). So
maybe with "auto" modeled more accurately, and differentiating between
function templates (always using type suffixes there) and class/variable
templates (only using the suffix for "auto" types) we could correctly
use integer type suffixes only in the minimal set of cases.

But that seems all too much fuss, so let's just put integer type
suffixes everywhere always in the debug info of integer non-type
template parameters in template names.

(more context:
* https://reviews.llvm.org/D77598#inline-1057607
* https://groups.google.com/g/llvm-dev/c/ekLMllbLIZg/m/-dhJ0hO1AAAJ )

Differential Revision: https://reviews.llvm.org/D111477
2021-11-01 17:08:26 -07:00
..
APINotes
ARCMT Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
AST Properly determine the end location of an ObjCObjectPointerType. 2021-10-29 13:15:53 -07:00
ASTMerge Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Analysis [clang][NFC] Inclusive terms: Replace uses of whitelist in clang/lib/StaticAnalyzer 2021-10-29 16:51:36 -04:00
CXX [clang] NFC: include non friendly types and missing sugar in test expectations 2021-10-27 23:03:29 +02:00
ClangScanDeps [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
CodeCompletion Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
CodeGen [RISCV] Restore tests for vf(w)redusum. 2021-11-01 14:35:22 -07:00
CodeGenCUDA [HIP] [AlwaysInliner] Disable AlwaysInliner to eliminate undefined symbols 2021-10-18 16:53:15 -06:00
CodeGenCXX DebugInfo: workaround for context-sensitive use of non-type-template-parameter integer suffixes 2021-11-01 17:08:26 -07:00
CodeGenCoroutines Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
CodeGenHIP
CodeGenObjC Revert rest of `IRBuilderBase`'s short-circuiting folds 2021-10-28 02:15:14 +03:00
CodeGenObjCXX Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
CodeGenOpenCL [test] Remove tests pinned to the legacy PM 2021-10-18 16:40:46 -07:00
CodeGenOpenCLCXX Revert "[IR] `IRBuilderBase::CreateAdd()`: short-circuit `x + 0` --> `x`" 2021-10-27 22:21:37 +03:00
CodeGenSYCL Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
Coverage
CoverageMapping Revert "[Coroutines] [Clang] Look up coroutine component in std namespace first" 2021-09-03 16:01:09 -04:00
Driver [AArch64] Enablement of Cortex-X2 2021-11-01 11:55:24 +00:00
FixIt Implement P1949 2021-08-18 07:33:14 -04:00
Format
Frontend [clang] Add plugin ActionType to run command line plugin before main action 2021-10-20 08:58:20 -07:00
Headers Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
Import Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Index Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Integration
InterfaceStubs
Interpreter Reland "[clang-repl] Allow loading of plugins in clang-repl." 2021-10-05 13:04:01 +00:00
Layout Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Lexer [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
LibClang
Misc [AArch64] Enablement of Cortex-X2 2021-11-01 11:55:24 +00:00
Modules DebugInfo: workaround for context-sensitive use of non-type-template-parameter integer suffixes 2021-11-01 17:08:26 -07:00
OpenMP [OpenMP] Add triple to run lines to avoid message differences 2021-10-29 09:20:40 -07:00
PCH Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
Parser [CUDA][NFC] Fix inexact warning message about lambdas 2021-10-27 01:28:35 +00:00
ParserSYCL
Preprocessor [clang] Partially revert d8cd780631. 2021-10-29 02:41:54 -04:00
Profile [test] Remove tests pinned to the legacy PM 2021-10-18 16:40:46 -07:00
Refactor
Rewriter
Sema Revert "[clang] Fortify warning for scanf calls with field width too big." 2021-11-01 19:36:45 +00:00
SemaCUDA [openmp] Emit deferred diag only when device compilation presents 2021-10-25 11:19:18 -07:00
SemaCXX Re-instate -Wweak-template-vtables as a no-op flag 2021-10-28 14:40:59 +02:00
SemaObjC format_arg attribute should allow instancetype in NSString definition 2021-10-28 20:25:00 -07:00
SemaObjCXX Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
SemaOpenCL Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
SemaOpenCLCXX Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
SemaSYCL Reland [clang] Check unsupported types in expressions 2021-10-15 13:55:36 +03:00
SemaTemplate [clang] NFC: include non friendly types and missing sugar in test expectations 2021-10-27 23:03:29 +02:00
TableGen
Templight
Tooling
Unit
VFS [Modules] Do not remove failed modules after the control block phase 2021-08-17 16:46:51 -07:00
clang-rename
utils/update_cc_test_checks Revert D105169 due to the two-stage failure in ASAN 2021-10-18 23:52:46 +09:00
.clang-format
CMakeLists.txt Reinstate "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-26 19:29:56 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Reinstate "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-26 19:29:56 +00:00
lit.site.cfg.py.in
make_test_dirs.pl