[PATCH] D77598: Integral template argument suffix printing

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 15:16:58 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: clang/test/CodeGenCXX/debug-info-template.cpp:34
 
-// CHECK: ![[TC]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "TC<unsigned int, 2, &glb, &foo::e, &foo::f, &foo::g, 1, 2, 3>"
+// CHECK: ![[TC]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "TC<unsigned int, 2U, &glb, &foo::e, &foo::f, &foo::g, 1, 2, 3>"
 // CHECK-SAME:                              templateParams: [[TCARGS:![0-9]*]]
----------------
This is not a diagnostic change.

My experiments with an older GCC seem to indicate that it uses lowercase `u` and is capable of distinguishing between 64-bit `long` and `long long`. I also observe that no suffix appears with a newer GCC.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77598/new/

https://reviews.llvm.org/D77598





More information about the cfe-commits mailing list