[update_cc_test_checks.py] Correctly skip function definitions
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 18 Jun 2020 14:10:54 +0000 (15:10 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 18 Jun 2020 17:09:21 +0000 (18:09 +0100)
commitead7a8beccc18c2cbcde980d2f593267d63c5dc2
treea3e1335f4355e0fb3559866a370d2bc442a74061
parent5fac474fad3984f5e204d8bb01201f1705504339
[update_cc_test_checks.py] Correctly skip function definitions

Function declarations can in fact have an 'inner' node that lists the
ParmVarDecls. It seems like either the JSON output has changed or that I
tested the original JSON parsing change with test files that only have
function definitions without arguments.

Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D80913
clang/test/utils/update_cc_test_checks/Inputs/def-and-decl.c
clang/test/utils/update_cc_test_checks/Inputs/def-and-decl.c.expected
llvm/utils/update_cc_test_checks.py