[PATCH] Handle PredefinedExpr with templates and lambdas

Erik Olofsson erik.olofsson at hansoft.se
Sun Sep 15 03:13:37 PDT 2013


  I can confirm that the patch fixes all asserts I previously had, but I have a failure in the new test:

  ```
  llvm/tools/clang/test/CodeGenCXX/predefined-expr.cpp:13:11: error: expected string not found in input
  // CHECK: private unnamed_addr constant [51 x i8] c"void functionTemplateWithCapturedStmt(T) [T = int]\00"
            ^
  <stdin>:38:195: note: scanning from here
  @__PRETTY_FUNCTION__._ZZ26functionTemplateWithLambdaIiEvT_ENKUlvE_clEv = private unnamed_addr constant [76 x i8] c"auto functionTemplateWithLambda(int)::<anonymous class>::operator()() const\00", align 1
                                                                                                                                                                                                    ^
  <stdin>:41:71: note: possible intended match here
  @__PRETTY_FUNCTION__._Z33functionTemplateWithCompoundTypesIiEPT_S1_ = private unnamed_addr constant [52 x i8] c"T *functionTemplateWithCompoundTypes(T *) [T = int]\00", align 1
                                                                        ^
  ```

http://llvm-reviews.chandlerc.com/D1628

BRANCH
  master

ARCANIST PROJECT
  clang



More information about the cfe-commits mailing list