summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove __INTPTR_TYPE__ as it is no longer needed by stdint.h, which usesKen Dyck2009-11-191-1/+0
| | | | | | __INTPTR_WIDTH__ instead. llvm-svn: 89340
* Predefine __INTPTR_WIDTH__ for future use in stdint.h.Ken Dyck2009-11-181-0/+1
| | | | llvm-svn: 89231
* Remove the __INTMAX_TYPE__ and __UINTMAX_TYPE__ built-in macros as they are noKen Dyck2009-11-181-2/+0
| | | | | | longer used by stdint.h. llvm-svn: 89230
* Predefine __INTMAX_WIDTH__ for the future parameterization of INTMAX macros inKen Dyck2009-11-181-0/+8
| | | | | | stdint.h. llvm-svn: 89203
* Simplify PreprocessorOptions, it doesn't need abstracted field access.Daniel Dunbar2009-11-171-14/+12
| | | | llvm-svn: 89047
* Parameterize the constant-generating macros in stdint.h with new built-inKen Dyck2009-11-161-1/+9
| | | | | | | __INTn_C_SUFFIX__ macros that are defined for types with corresponding constant suffixes (i.e. long and long long). llvm-svn: 88914
* Generalize stdint.h for non-8-bit-multiple types, patch by Chris Lattner2009-11-121-18/+21
| | | | | | | | | | Ken Dyck! "This adds definitions for types of 8-bit multiples from 8 to 64 to stdint.h and rationalizes the selection of types for the exact-width definitions in InitPreprocessor.cpp." llvm-svn: 86977
* do not store wchar/char16/char32/intmax width/alignment infoChris Lattner2009-11-121-5/+1
| | | | | | | into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! llvm-svn: 86976
* Tweak PCH -include handling to make sure it matches the name as would be presentDaniel Dunbar2009-11-111-4/+9
| | | | | | in the predefines buffer. llvm-svn: 86903
* Always initialize the header search object as part of InitializePreprocessor;Daniel Dunbar2009-11-111-1/+7
| | | | | | not doing this has little to no utility. llvm-svn: 86883
* PreprocessorOptions: Get rid of unnecessary 'isPTH' flag for include entries.Daniel Dunbar2009-11-101-3/+3
| | | | llvm-svn: 86757
* Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fixDaniel Dunbar2009-11-071-5/+6
| | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335
* clean up integer preprocessor type definitions, patch by Ken Dyck!Chris Lattner2009-11-051-10/+22
| | | | llvm-svn: 86177
* InitializePreprocessor cannot fail.Daniel Dunbar2009-11-041-4/+1
| | | | llvm-svn: 86048
* Move -undef flag into PreprocessorInitOptionsDaniel Dunbar2009-11-041-3/+2
| | | | llvm-svn: 86047
* Implement support for the -undef command line option, patch byChris Lattner2009-11-031-3/+5
| | | | | | Roman Divacky! PR5363 llvm-svn: 85932
* clean up namespace.Chris Lattner2009-11-021-6/+3
| | | | llvm-svn: 85826
* simplify intmax setup, patch by Ken Dyck!Chris Lattner2009-10-291-15/+3
| | | | llvm-svn: 85481
* hookize wint_t's definition, patch by Edward O'Callaghan (from PR5233).Chris Lattner2009-10-211-2/+1
| | | | llvm-svn: 84740
* Work-around wchar_t and __pragma problem in VC headersJohn Thompson2009-10-161-2/+11
| | | | llvm-svn: 84227
* Move the "needs exception support" logic to clang. This also fixesRafael Espindola2009-10-011-2/+3
| | | | | | | -fno-exceptions in C++ code. We used to always define __EXCEPTIONS in C++. llvm-svn: 83199
* Non fragile ABI for GNU runtime. Patch bu David Chisnall.Fariborz Jahanian2009-09-101-3/+0
| | | | llvm-svn: 81462
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-40/+40
| | | | llvm-svn: 81346
* Don't use '%ll', this doesn't workin on Win32.Daniel Dunbar2009-09-031-1/+3
| | | | llvm-svn: 80933
* Define _GNU_SOURCE in C++ mode so that clang works with GNU libstdc++.Eli Friedman2009-08-271-0/+2
| | | | llvm-svn: 80289
* API changes to match llvm ToT.Chris Lattner2009-08-231-1/+1
| | | | llvm-svn: 79868
* Predefine __cplusplus to the right value (199711L), except when in GNU mode.Douglas Gregor2009-08-061-1/+7
| | | | llvm-svn: 78283
* define __STDC_VERSION__ processor token for c94Ryan Flynn2009-07-211-4/+7
| | | | llvm-svn: 76514
* Fix for PR4192: fix the definition of int64_t on x86_64 Linux.Eli Friedman2009-07-011-1/+1
| | | | | | | | | | | | | Note that I'm guessing that *BSD and Solaris do the same thing as Linux here, but it's quite possible I'm wrong; if the following testcase gives an error on x86-64 with gcc for any of those operating systems, please tell me: #include <stdint.h> int64_t x; long x; llvm-svn: 74583
* Make the StackProtector bitfield use enums instead of obscure numbers.Bill Wendling2009-06-281-2/+2
| | | | llvm-svn: 74414
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-281-1/+6
| | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
* __APPLE_CC__ should only be set when building for darwin targets.Chris Lattner2009-06-231-1/+0
| | | | llvm-svn: 73934
* PR4388: get rid of an extra # line directive; in addition to being Eli Friedman2009-06-151-5/+1
| | | | | | | unnecessary, this was causing issues for assembler-with-cpp mode, which doesn't process the directive. llvm-svn: 73382
* Misc minor fixes for clang for the Windows target.Eli Friedman2009-06-081-1/+0
| | | | llvm-svn: 73050
* Move CharIsSigned from TargetInfo to LangOptions.Eli Friedman2009-06-051-1/+1
| | | | llvm-svn: 72928
* Move a couple Darwin-specific defines into getDarwinDefines.Eli Friedman2009-06-041-5/+0
| | | | llvm-svn: 72900
* DefineBuiltinMacro is always passed two args, remove the defaulted thirdChris Lattner2009-06-041-2/+2
| | | | | | one. llvm-svn: 72868
* Compile fix needed by the solaris system gcc.Duncan Sands2009-06-031-5/+5
| | | | llvm-svn: 72772
* Add IEEE quad support to DefineFloatMacros.Eli Friedman2009-05-231-15/+22
| | | | llvm-svn: 72314
* PR4247: Widen the buffer slightly so it can hold all the definitions for Eli Friedman2009-05-231-1/+1
| | | | | | | | PPC double double. (No testcase because no normal target uses the format at the moment.) llvm-svn: 72310
* This patch adds support for sender-aware dispatch in Objective-C for the GNU ↵Fariborz Jahanian2009-05-221-0/+3
| | | | | | | | | | runtime, when compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object planes, and a few other things. Patch by David Chisnall. llvm-svn: 72275
* Remove unused parameter.Eli Friedman2009-05-181-1/+0
| | | | llvm-svn: 71996
* Fix processing of -Ufoo to not inject "#undef foo 1" into the predefinesChris Lattner2009-05-151-1/+11
| | | | | | | | | | | | | | | | buffer. This caused exciting nonsense like this: $ clang t.c -fsyntax-only -UMACRO In file included from <built-in>:104: <command line>:1:14: warning: extra tokens at end of #undef directive [-Wextra-tokens] #undef MACRO 1 ^ // 1 diagnostic generated. rdar://6891800 llvm-svn: 71860
* Add another workaround for -include.Daniel Dunbar2009-04-221-3/+9
| | | | | | | | | | | | - If we don't find a file looking relative to the current working directory, fall back to header search. This is closer to what would happen if the lookup was starting from right directory in the first place (except it will find files in the directory of the main source file, which I *think* should not be found). - PR3992. llvm-svn: 69794
* Fix rdar://6814950 - stdint.h isn't "-pedantic -std=c89" clean,Chris Lattner2009-04-221-2/+6
| | | | | | | | | | | | | | | | | | | | by marking the predefines buffer as a system header. The problem with stdint is that it was getting problems like this: /Volumes/Projects/cvs/llvm/Debug/lib/clang/1.0/include/stdint.h:43:9: warning: 'long long' is an extension when C99 mode is not enabled typedef __INT64_TYPE__ int64_t; ^ <built-in>:73:29: note: instantiated from: #define __INT64_TYPE__ long long ^ We correctly silence warnings in system headers, but only if the spelling location of the token came from the system header. This is designed so that if you use a system macro in your code that you don't get punished for its definition. This is all cool except that the predefines buffer wasn't considered a system header. llvm-svn: 69770
* this time with more workingness.Chris Lattner2009-04-211-1/+0
| | | | llvm-svn: 69669
* fix massive testsuite failures from Alexei's patch due to inverted logic.Chris Lattner2009-04-211-9/+7
| | | | llvm-svn: 69666
* Split preprocessor initialization logic out of clang-cc intoChris Lattner2009-04-211-0/+469
libfrontend. Patch by Alexei Svitkine! llvm-svn: 69664
OpenPOWER on IntegriCloud