ChuanqiXu9 wrote:

> > Maybe we can do something similar in #172966
> > e.g, we should ask the tools to insert import std; instead of #include.
> > We can file an issue for it as the first step.
> 
> The first step could be adding `import <header>` support to `HeaderIncludes`. 
> Currently `HeaderIncludes` only supports `#include` and `#import`.

The header units and STD module are not mutex to each other. And personally, I 
don't think suggesting things like `import <vector>` is very helpful. As 
standard header units are almost semantically the same thing with a textual 
include and also tools support and the practice for header units is pretty 
limited. 

https://github.com/llvm/llvm-project/pull/173724
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to