- Rename the IsSystem flag to be IsAngled since that's how callers actually use the flag.
- Since frameworks by convention use <> style includes, make sure we treat them as Angled
Also update clangd's custom logic for frameworks accordingly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Lex/HeaderSearch.cpp | ||
---|---|---|
1939 | sorry I guess my suggestion get distorted a little bit on the way :D I was actually suggesting to rename IsSystem to IsAngled, and change the logic in the rest of the code here to look for angled-ness of include search path, rather than system-ness. That way we make sure we're not giving mixed signals out of this function. WDYT? |
sorry I guess my suggestion get distorted a little bit on the way :D
I was actually suggesting to rename IsSystem to IsAngled, and change the logic in the rest of the code here to look for angled-ness of include search path, rather than system-ness.
As all of the current callers make use of this information to figure out if they should spell the includes with angles or quotes and set it if the include search dir is either part of angled or system includes.
That way we make sure we're not giving mixed signals out of this function. WDYT?