vsapsai added a comment.
Thanks everyone for reviewing the change.
Repository:
rL LLVM
https://reviews.llvm.org/D48786
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rL337953: [Preprocessor] Stop entering included files after
hitting a fatal error. (authored by vsapsai, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
vsapsai updated this revision to Diff 156911.
vsapsai added a comment.
- Tweak the comment according to review comments.
Undiscussed changes: we don't stop preprocessing entirely, only in included
files; not using better-sounding "skip" deliberately as it might be confused
with `FileSkipped`
vsapsai added inline comments.
Comment at: clang/lib/Lex/PPDirectives.cpp:1875
+ // Stop further preprocessing if a fatal error has occurred. Any diagnostics
+ // we might have raised will not be visible.
+ if (ShouldEnter && Diags->hasFatalErrorOccurred())
bruno accepted this revision.
bruno added a comment.
Thanks for working on this.
LGTM with improvements in the comments as mentioned by @jkorous
https://reviews.llvm.org/D48786
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM as well
https://reviews.llvm.org/D48786
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
jkorous accepted this revision.
jkorous added a comment.
This revision is now accepted and ready to land.
LGTM with just a nit about comment wording.
Thanks for the patch!
Comment at: clang/lib/Lex/PPDirectives.cpp:1875
+ // Stop further preprocessing if a fatal error has
vsapsai added inline comments.
Comment at: clang/lib/Lex/PPDirectives.cpp:1875
+ // Stop further preprocessing if a fatal error has occurred. Any diagnostics
+ // we might have raised will not be visible.
+ if (ShouldEnter && Diags->hasFatalErrorOccurred())
jkorous added a reviewer: jkorous.
jkorous added inline comments.
Comment at: clang/lib/Lex/PPDirectives.cpp:1875
+ // Stop further preprocessing if a fatal error has occurred. Any diagnostics
+ // we might have raised will not be visible.
+ if (ShouldEnter &&
vsapsai added a comment.
Ping.
https://reviews.llvm.org/D48786
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsapsai added a comment.
Ping.
https://reviews.llvm.org/D48786
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsapsai created this revision.
vsapsai added reviewers: bruno, rsmith.
Herald added a subscriber: dexonsmith.
Fixes a problem when we have multiple inclusion cycles and try to
enumerate all possible ways to reach the max inclusion depth.
rdar://problem/38871876
https://reviews.llvm.org/D48786
12 matches
Mail list logo