|Cobra||Interactive Query Language||pre|
NAMEpre — show preprocessed source code context for marked tokens
p[re] p[re] number number p[re] * number
DESCRIPTIONThe pre command works the same as the display command, except the text that is printed is the preprocessed version of the source code, rather than the source code itself, and the matched token is highlighted. This can be useful when, for instance, a token matches in the expanded version of macros, but the match is not clear from the un-preprocessed code itself. The same options as used for the display command can be used.
: p # displays the preprocessed source lines for all matches : p 4 # displays only the match for th 4th match : p 4 2 # adds 2 lines of context before and after the match : p * 2 # adds 2 lines for all matches : p 1 +2 # adds 2 lines after the first matched line : p 1 -2 # adds 2 lines before the first matched line
NOTESThis command is most useful if preprocessing is enabled, either on the command line or interactively with the cpp command.
SEE ALSOcpp, display, json, list
Return to index
|(Last Updated: 15 January 2021)|