Files
clang-p2996/lldb/test/functionalities/data-formatter/varscript_formatting/main.cpp
Enrico Granata 88282c69f3 Add a feature where a string data formatter can now be partially composed of Python summary functions
This works similarly to the {thread/frame/process/target.script:...} feature - you write a summary string, part of which is

${var.script:someFuncName}
someFuncName is expected to be declared as
def someFuncName(SBValue,otherArgument) - essentially the same as a summary function

Since . -> [] are the only allowed separators, and % is used for custom formatting, .script: would not be a legitimate symbol anyway, which makes this non-ambiguous

llvm-svn: 220821
2014-10-28 21:07:00 +00:00

8 lines
142 B
C++

template <typename T>
struct something {};
int main() {
something<int> x;
something<void*> y;
return 0; // Set breakpoint here.
}