Declaring function prototype with typedef

No patch this time. Sorry.

By the way, all patches and tests I reported so far came from trying
to -fsyntax-only compile Lua and Expat with Clang. Both are GCC -Wall
clean and written in portable standard C.

// RUN: clang -fsyntax-only -verify %s

typedef int unary_int_func(int arg);
unary_int_func add_one;

int add_one(int arg) {
    return arg + 1;

No patch this time. Sorry.

Okay, here is a patch. Attached.

typedef-prototype (1.71 KB)

Your patch looks great! I made one tweak to avoid calling GetTypeForDeclarator twice in the typedef case, otherwise I applied it unmodified: