[all-commits] [llvm/llvm-project] 9e2715: [lldb] Remove template parameters from FunctionTem...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Tue Mar 17 11:00:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e2715aaacaa3087933b5575d23563751b54843b
      https://github.com/llvm/llvm-project/commit/9e2715aaacaa3087933b5575d23563751b54843b
  Author: shafik <syaghmour at apple.com>
  Date:   2020-03-17 (Tue, 17 Mar 2020)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    M lldb/test/API/lang/cpp/template-function/TestTemplateFunctions.py
    M lldb/test/API/lang/cpp/template-function/main.cpp

  Log Message:
  -----------
  [lldb] Remove template parameters from FunctionTemplateDecl names

Fix to get the AST we generate for function templates closer to what clang generates and expects.
We fix which FuntionDecl we are passing to CreateFunctionTemplateSpecializationInfo and we strip
template parameters from the name when creating the FunctionDecl and FunctionTemplateDecl.

These two fixes together fix asserts and ambiguous lookup issues for several cases which are added to the already existing small function template test.
This fixes issues with overloads, overloads and ADL, variadic function templates and templated operator overloads.

Differential Revision: https://reviews.llvm.org/D75761




More information about the All-commits mailing list