Detecting gcc
output without its command
#10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Detecting
gcc
output without its commandCommit message
from a line that only contain a code file name
because
gcc
commandProblem
This make command doesn't print the code file name
Solution
Detecting
gcc
output from a line that only contain a code file name becausegcc
output when thegcc
command isn't printed and when the make file print the code file name on a line without other textgcc
outputConfirm filename regex
Confirm this code
because
I don't know why
\\
instead of\\\
returnmake -n
make -n
isn't a workaround becauseit doesn't print the error line
make V=1
make V=1
isn't a workaround becauseit doesn't have an effect in this make file
Refactoring
The
gcc
block detection regex is refactored bybecause
Discussion
This is changed