
Add the Data Inspection Language (DIL) implementation pieces for handling plain local and global variable names. See https://discourse.llvm.org/t/rfc-data-inspection-language/69893 for information about DIL. This change includes the basic AST, Lexer, Parser and Evaluator pieces, as well as some tests.
24 lines
294 B
C++
24 lines
294 B
C++
#include <string>
|
|
|
|
class C {
|
|
public:
|
|
int field_ = 1337;
|
|
};
|
|
|
|
class TestMethods {
|
|
public:
|
|
void TestInstanceVariables() {
|
|
C c;
|
|
c.field_ = -1;
|
|
|
|
return; // Set a breakpoint here
|
|
}
|
|
};
|
|
|
|
int main(int argc, char **argv) {
|
|
TestMethods tm;
|
|
|
|
tm.TestInstanceVariables();
|
|
return 0;
|
|
}
|