How can I match this error in the build with regex to locate line and file? With result_line_regex & result_file_regex
project4.dpr(9) Hint: H2164 Variable ‘I’ is declared but never used in ‘Project3’
How can I match this error in the build with regex to locate line and file? With result_line_regex & result_file_regex
project4.dpr(9) Hint: H2164 Variable ‘I’ is declared but never used in ‘Project3’
Is this a question regarding regex or how to use the build system to capture those errors?
The line_regex works in conjuction with the file_regex when the output of an error is (usually) more than a line.
From the docs:
[quote]result_file_regex
If result_file_regex doesn’t match but result_line_regex exists and does match on the current line, walk backwards through the buffer until a line matching result_file_regex is found, and use the two matches to determine the file and line to go to.
[/quote]