Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/include-cleaner/test/nocrash.cpp | ||
---|---|---|
2 | I have considered to add a unittest in FindHeadersTest, but that is not trivial to do, the unittest is written based on the assumption that the captured symbol name is a simple identifier (we use the it to find the symbol based on a given text name). Other ideas are welcome. |
thanks, LGTM!
clang-tools-extra/include-cleaner/test/nocrash.cpp | ||
---|---|---|
2 | i think this LG, any place that needs to test these APIs requires handles to the decls. So we either need to have a test that does complicated AST traversals to reach a particular node or test things through an integration test, something like this or a unittest on top of walkUsed/analyze. I don't think former is worth for a crash test and having a unittest based on walkUsed/analyze for checking a crash inside headersForSymbol is more confusing. |
I have considered to add a unittest in FindHeadersTest, but that is not trivial to do, the unittest is written based on the assumption that the captured symbol name is a simple identifier (we use the it to find the symbol based on a given text name).
Other ideas are welcome.