When looking up user specified formatters qualifiers are removed from types before matching, I have added a clarifying example to the document and added an example to a relevant test to demonstrate this behavior.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM, thanks! FWIW, there are actually a lot more 'qualifiers' supported in Clang that are ignored by the formatters (restrict, Obj-C garbage collector descriptions, custom address spaces, etc.). Most of them are not even modelled in DWARF and users rarely encounter them, so I think const/volatile should cover all reasonable workflows.
lldb/test/API/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py | ||
---|---|---|
247 | There are test methods for frame var: |
There are test methods for frame var:
self.expect_var_path("constVolatileInt", value="0x0000002c")