[update_cc_test_checks.py] Handle extern "C" and namespaces

Authored by arichardson on Dec 2 2019, 2:53 AM.


[update_cc_test_checks.py] Handle extern "C" and namespaces

My change to use the clang AST JSON dump did not handle functions declared
inside scopes other than the root TranslationUnitDecl. After this change
update_cc_test_checks.py also works for C++ test cases that use extern "C"
and namespaces.

Reviewers: MaskRay

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70389

Event Timeline

Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> committed rG8ab3b4defd90: [update_cc_test_checks.py] Handle extern "C" and namespaces (authored by Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>).Dec 2 2019, 3:06 AM