[PATCH] D46027: [clang-tidy] Fix PR35824
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 27 10:45:52 PST 2019
alexfh accepted this revision.
alexfh added a comment.
> This approach will also introduce false negatives.
Could you add a test showing this with a FIXME comment?
> A better approach would be to check if the null statement is the result of folding an if constexpr.
> The current AST API does not expose this information.
> A better fix might require AST patches on the clang side.
> The fix is proposed here: https://reviews.llvm.org/D46234
> Richard suggested to replace null stmts with nulls, but I have no time to deal with all the fallouts for now. If someone is willing to pick that up feel free to, but until then it might be a good idea to land this quick fix.
Could you add a FIXME comment to this effect?
Otherwise LG.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D46027/new/
https://reviews.llvm.org/D46027
More information about the cfe-commits
mailing list