Instead of always displaying the mangled name, try to do better
and get something closer to regular functions.
Details
Details
- Reviewers
arphaman - Commits
- rGdc9bf8fab636: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rG26168ad5c50f: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rC287085: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rC287039: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rL287085: Improve handling of __FUNCTION__ and other predefined expression for Objective…
rL287039: Improve handling of __FUNCTION__ and other predefined expression for Objective…
Diff Detail
Diff Detail
- Build Status
Buildable 1197 Build 1197: arc lint + arc unit
Event Timeline
clang/lib/AST/Expr.cpp | ||
---|---|---|
538 | I think it's possible to avoid the braces by simplifying down to something like this: if (auto *DCFunc = dyn_cast<FunctionDecl>(DC)) Out << ComputeName(IT, DCFunc) << "_block_invoke"; else // For nested blocks, propagate up to the parent. Out << ComputeName(IT, cast<BlockDecl>(DC)); | |
clang/lib/CodeGen/CGExpr.cpp | ||
2325 | discriminator should be Discriminator | |
2327 | != 0 is redundant here | |
clang/test/CodeGen/block-with-perdefinedexpr.cpp | ||
67 | I think you should maybe add/change one of the tests to be a block inside of a lambda. |
Comment Actions
This is probably caused by this patch
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/649/steps/check-clang%20msan/logs/stdio
I think it's possible to avoid the braces by simplifying down to something like this: