]> granicus.if.org Git - clang/commit
PR36157: When injecting an implicit function declaration in C89, find the right
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 Feb 2018 20:01:49 +0000 (20:01 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 Feb 2018 20:01:49 +0000 (20:01 +0000)
commitf61575826a1eef7d0c0198d6f444894ec72ea394
tree7b1268efe4f46faa0631b8d73a1339c31cfab964
parent604238e317775b3ac1c6f1ccb0b53f404501c442
PR36157: When injecting an implicit function declaration in C89, find the right
DeclContext rather than injecting it wherever we happen to be.

This avoids creating functions whose DeclContext is a struct or similar.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/bitfield.c
test/Sema/cxx-as-c.c [new file with mode: 0644]