The EndLoc of a type loc can be invalid for broken code.
Also extend the existing test to support error code with error-ok
annotation.
Paths
| Differential D96261
[Syntax] Remove a strict valid source location assertion for TypeLoc. ClosedPublic Authored by hokein on Feb 8 2021, 6:15 AM.
Details Summary The EndLoc of a type loc can be invalid for broken code. Also extend the existing test to support error code with error-ok
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 10 2021, 8:27 AM This revision was landed with ongoing or failed builds.Feb 11 2021, 12:58 AM Closed by commit rGe159a3ced4c5: [Syntax] Remove a strict valid source location assertion for TypeLoc. (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 322914 clang/lib/Tooling/Syntax/BuildTree.cpp
clang/unittests/Tooling/Syntax/BuildTreeTest.cpp
|