Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update backend.py #970

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kuafu-run
Copy link

with distcc on, when err occerd, output of g++ -H is like
.... ./proj/.../foo.h
.. /usr/.../bar.h
Multiple include guards may be useful for:
.... ./proj/.../foo.h
.. /usr/.../bar.h

"gcc's err msg"
Multiple include guards may be useful for:
/usr/.../foo.h
... ./proj/.../bar.h

with distcc on,  when err occerd, output of g++ -H is like
 .... ./proj/.../foo.h
.. /usr/.../bar.h
Multiple include guards may be useful for:
 .... ./proj/.../foo.h
.. /usr/.../bar.h

"gcc's err msg"
Multiple include guards may be useful for:
/usr/.../foo.h
... ./proj/.../bar.h
r"'"
r"""/Multiple include guards may be useful for:/ {stop=1} """ # Can't exit here otherwise SIGPIPE maybe occurs.
r"""/^\.+ [^\/]/ && !stop { print $$0} """ # Non absolute path
r"""!/^\./ && !/^\// && !/Multiple include guards may be useful for:/ {print $$0 > "/dev/stderr"}""" # Maybe error messages
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest using the next command in the first line to avoid matching it again.

r"""/^\.+ [^\/]/ { print $$0} """ # Non absolute path
r"""!/^\.+ / && !stop {print $$0 > "/dev/stderr"}""" # Maybe error messages
r"'"
r"""/Multiple include guards may be useful for:/ {stop=1} """ # Can't exit here otherwise SIGPIPE maybe occurs.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

over indented space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants