This is part of the implementation of the dataflow analysis framework.
See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Is it planned to support templated code this way?
I'm not entirely sure if this is worth pursuing as opposed to checking instantiations.
I also think that we should prefer checking instantiations. We have a single Clang-Tidy check that works on templates and I believe this is the only special support that it needs. We can revisit that later and remove this support if it proves to be unnecessary.
This breaks tests on windows: http://45.33.8.238/win/52841/step_7.txt
Please take a look and revert for now if it takes a while to fix.
Thanks for sharing this. I reverted the patch and will look at why it fails on Windows.
@gribozavr2 suggested that this is probably because we use delayed template parsing on Windows for MSVC compatibility. I reproduced the error using the --target=x86_64-windows-msvc arg and verified that adding -fno-delayed-template-parsing arg fixes it.