aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Builtins.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-12-20Revert r170500. It over-zealously converted *ALL* things named Attributes, ↵Bill Wendling1-6/+6
which is wrong here. llvm-svn: 170721
2012-12-19Rename the 'Attributes' class to 'Attribute'. It's going to represent a ↵Bill Wendling1-6/+6
single attribute in the future. llvm-svn: 170500
2012-12-04Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth1-1/+1
uncovered. This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files. I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers. llvm-svn: 169237
2012-02-04Move a method from IdentifierTable.h out of line and remove the SmallString ↵Benjamin Kramer1-0/+1
include. Fix all the transitive include users. llvm-svn: 149783
2011-09-01Allow the preprocessor to be constructed without performing target-Douglas Gregor1-2/+6
and language-specific initialization. Use this to allow ASTUnit to create a preprocessor object *before* loading the AST file. No actual functionality change. llvm-svn: 138983
2011-07-23remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner1-1/+1
LLVM.h imports them into the clang namespace. llvm-svn: 135852
2011-07-05Remove unused member of Builtin::Info.Eli Friedman1-15/+7
llvm-svn: 134443
2011-02-20Test commit.Richard Smith1-1/+0
llvm-svn: 126063
2010-12-21In C++, if the user redeclares a builtin function with a type that isDouglas Gregor1-0/+4
inconsistent with the type that the builtin *should* have, forget about the builtin altogether: we don't want subsequence analyses, CodeGen, etc., to think that we have a proper builtin function. C is protected from errors here because it allows one to use a library builtin without having a declaration, and detects inconsistent (re-)declarations of builtins during declaration merging. C++ was unprotected, and therefore would crash. Fixes PR8839. llvm-svn: 122351
2010-11-30Such function decls,as objc's objc_msgSend, builtins in Fariborz Jahanian1-7/+12
a specific language. We are adding such language info. by extensing Builtins.def and via a language flag added to LIBBUILTIN/BUILTIN and check for that when deciding a name is builtin or not. Implements //rdar://8689273. llvm-svn: 120429
2010-07-16Add builtin definition for scanf, including extending the builtin encoding toTed Kremenek1-0/+20
represent builtins that have the "scanf" attribution (via the format attribute) just like we do with printf functions. Follow-up work is needed to add similar support for fscanf et al. This is to support format-string checking for scanf functions. llvm-svn: 108499
2009-09-09Remove tabs, and whitespace cleanups.Mike Stump1-9/+9
llvm-svn: 81346
2009-06-16follow-on to my patch: some targets (like sparc) do notChris Lattner1-0/+2
have target-specific builtins, and do not set the count. Just default to 0 for these targets. llvm-svn: 73510
2009-06-16my refactoring of builtins changed target-specific builtins to only beChris Lattner1-4/+5
registered when PCH wasn't being used. We should always install (in BuiltinInfo) information about target-specific builtins, but we shouldn't register any builtin identifier infos. This fixes the build of apps that use PCH and target specific builtins together. llvm-svn: 73492
2009-06-14Sink the BuiltinInfo object from ASTContext into theChris Lattner1-6/+4
preprocessor and initialize it early in clang-cc. This ensures that __has_builtin works in all modes, not just when ASTContext is around. llvm-svn: 73319
2009-06-14move the various builtins stuff from libast to libbasic. ThisChris Lattner1-0/+94
fixes a layering violation in lib/Basic/Targets.cpp. llvm-svn: 73318