Disabled an invalid fix-it which suggested fixes to be applied in system headers for some programs in IDEs like Xcode.
rdar://100890960
Paths
| Differential D141868
[Clang] [Sema] Removed a fix-it for system headers ClosedPublic Authored by fahadnayyar on Jan 16 2023, 11:46 AM.
Details Summary Disabled an invalid fix-it which suggested fixes to be applied in system headers for some programs in IDEs like Xcode. rdar://100890960
Diff Detail
Unit TestsFailed Event TimelineComment Actions Looks great! Sounds like you're looking for a more permanent fix, I guess ConversionFixItGenerator could try to avoid adding fixits to system header functions?
Comment Actions You should also add a release note for the changes.
Comment Actions
It probably requires some larger rearchitecturing of the FixItGeneration implementation to avoid system headers for all kinds of FixitHints like ConversionFixIt. We can do that later as a separate patch after getting some more examples where fixits are suggested for system headers.
Done! This revision is now accepted and ready to land.Jan 19 2023, 11:58 AM This revision was landed with ongoing or failed builds.Jan 20 2023, 1:29 PM Closed by commit rG5e5d901feb3c: [Clang] [Sema] Removed a fix-it for system headers (authored by fahadnayyar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 490618 clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaOverload.cpp
clang/test/Index/fixit-sys-header.h
clang/test/Index/fixit-sysheader-test.cpp
|