]> granicus.if.org Git - clang/commit
ASTContext: Declare builtin types implicitly
authorAlp Toker <alp@nuanti.com>
Sun, 15 Dec 2013 10:36:26 +0000 (10:36 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 15 Dec 2013 10:36:26 +0000 (10:36 +0000)
commit7cec627f328707d7a9bc78b5acb56eb712ffbc12
treebb7b3e4f03b9eadfbcd9d417bf301b5f72984728
parente3c64cd067f9a5eea8727759abdfa6ff113799db
ASTContext: Declare builtin types implicitly

__builtin_va_list and friends have been showing up where they shouldn't for way
to long, making unwanted appearences in -ast-print, tooling and source level
visitors and even the hello world tutorial on the clang website.

This commit factors down the implicit typedef and record creation facilities to
ensure they're marked implicit.

Also fixes a unit test that was testing incorrect behaviour, and removes old
hacks in the DeclPrinter that tried to skip implicit declarations manually.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197336 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/AST/DeclPrinter.cpp
unittests/Frontend/FrontendActionTest.cpp