summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Builtins.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move a method from IdentifierTable.h out of line and remove the SmallString ↵Benjamin Kramer2012-02-041-0/+1
| | | | | | | | include. Fix all the transitive include users. llvm-svn: 149783
* Allow the preprocessor to be constructed without performing target-Douglas Gregor2011-09-011-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
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-1/+1
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Remove unused member of Builtin::Info.Eli Friedman2011-07-051-15/+7
| | | | llvm-svn: 134443
* Test commit.Richard Smith2011-02-201-1/+0
| | | | llvm-svn: 126063
* In C++, if the user redeclares a builtin function with a type that isDouglas Gregor2010-12-211-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
* Such function decls,as objc's objc_msgSend, builtins in Fariborz Jahanian2010-11-301-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
* Add builtin definition for scanf, including extending the builtin encoding toTed Kremenek2010-07-161-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
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-9/+9
| | | | llvm-svn: 81346
* follow-on to my patch: some targets (like sparc) do notChris Lattner2009-06-161-0/+2
| | | | | | | have target-specific builtins, and do not set the count. Just default to 0 for these targets. llvm-svn: 73510
* my refactoring of builtins changed target-specific builtins to only beChris Lattner2009-06-161-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
* Sink the BuiltinInfo object from ASTContext into theChris Lattner2009-06-141-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
* move the various builtins stuff from libast to libbasic. ThisChris Lattner2009-06-141-0/+94
fixes a layering violation in lib/Basic/Targets.cpp. llvm-svn: 73318
OpenPOWER on IntegriCloud