jansvoboda11 wrote:

How about something like this?

```c++
auto FE = CI.getFileManager().getOptionalFileEntryRef("foo.h");
bool IsFooIncluded = FE && 
CI.getPreprocessor().getIncludedFiles().contains(*FE);
```

https://github.com/llvm/llvm-project/pull/74910
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to