[all-commits] [llvm/llvm-project] 99d63c: Add type information to integral template argument...

Pratyush Das via All-commits all-commits at lists.llvm.org
Wed May 12 12:00:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99d63ccff04b672694f8a2b3eed024b873dc163d
      https://github.com/llvm/llvm-project/commit/99d63ccff04b672694f8a2b3eed024b873dc163d
  Author: Pratyush Das <reikdas at gmail.com>
  Date:   2021-05-12 (Wed, 12 May 2021)

  Changed paths:
    M clang-tools-extra/clangd/Hover.cpp
    M clang/include/clang/AST/DeclTemplate.h
    M clang/include/clang/AST/Expr.h
    M clang/include/clang/AST/StmtDataCollectors.td
    M clang/include/clang/AST/TemplateBase.h
    M clang/lib/AST/ASTTypeTraits.cpp
    M clang/lib/AST/DeclPrinter.cpp
    M clang/lib/AST/DeclTemplate.cpp
    M clang/lib/AST/Expr.cpp
    M clang/lib/AST/NestedNameSpecifier.cpp
    M clang/lib/AST/StmtPrinter.cpp
    M clang/lib/AST/TemplateBase.cpp
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/Analysis/PathDiagnostic.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateDeduction.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/Analysis/eval-predefined-exprs.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p12.cpp
    A clang/test/CXX/lex/lex.literal/lex.ext/p13.cpp
    A clang/test/CXX/lex/lex.literal/lex.ext/p14.cpp
    A clang/test/CodeGenCXX/debug-info-codeview-template-literal.cpp
    A clang/test/CodeGenCXX/debug-info-codeview-template-type.cpp
    M clang/test/SemaCXX/builtin-align-cxx.cpp
    M clang/test/SemaCXX/cxx11-ast-print.cpp
    A clang/test/SemaCXX/cxx1z-ast-print.cpp
    M clang/test/SemaCXX/matrix-type-builtins.cpp
    M clang/test/SemaCXX/matrix-type-operators.cpp
    M clang/test/SemaTemplate/address_space-dependent.cpp
    A clang/test/SemaTemplate/default-arguments-ast-print.cpp
    M clang/test/SemaTemplate/delegating-constructors.cpp
    M clang/test/SemaTemplate/matrix-type.cpp
    M clang/test/SemaTemplate/temp_arg_enum_printing.cpp
    M clang/test/SemaTemplate/temp_arg_nontype.cpp
    M clang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp
    M clang/tools/libclang/CIndex.cpp
    M clang/unittests/Tooling/RecursiveASTVisitorTests/TemplateArgumentLocTraverser.cpp

  Log Message:
  -----------
  Add type information to integral template argument if required.

Non-comprehensive list of cases:
 * Dumping template arguments;
 * Corresponding parameter contains a deduced type;
 * Template arguments are for a DeclRefExpr that hadMultipleCandidates()

Type information is added in the form of prefixes (u8, u, U, L),
suffixes (U, L, UL, LL, ULL) or explicit casts to printed integral template
argument, if MSVC codeview mode is disabled.

Differential revision: https://reviews.llvm.org/D77598




More information about the All-commits mailing list