Do not exclude include directory symlinks to entries of CPATH
Extend the fix from !3395 (merged) to cover include directories that are symlinks to paths listed in CPATH
. Compare resolved paths against resolved entries of CPATH
.
Also some minor changes for slightly better performance.
Fixes: #22383 (closed)
Edited by Brad King