summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove state assertion.Ted Kremenek2010-06-281-1/+0
| | | | llvm-svn: 107064
* Don't crash in InitializePreprocessor() when there is no valid PTHManager. ↵Ted Kremenek2010-06-281-1/+2
| | | | | | Fixes <rdar://problem/8098441>. llvm-svn: 107061
* Remove HAS_TLS define.Eric Christopher2010-06-241-4/+0
| | | | llvm-svn: 106786
* More clang support for darwin tls. Add a __has_feature macro andEric Christopher2010-06-241-0/+4
| | | | | | target specific preprocessor define as well. llvm-svn: 106715
* Add several more predefines from modern versions of GCC.Dan Gohman2010-05-281-0/+27
| | | | llvm-svn: 104906
* Predefine the '__clang_analyzer__' macro when using '-analyze'.Ted Kremenek2010-05-261-0/+5
| | | | llvm-svn: 104742
* Add Clang version inspection macros. Fixes PR6681.Douglas Gregor2010-04-301-1/+15
| | | | llvm-svn: 102686
* fix PR6936: don't generate line marker directives when preprocessingChris Lattner2010-04-261-3/+9
| | | | | | | | .S files. "# 123" is passed through as-is, not treated as a line marker in this mode. No testcase, because it would be nasty and isn't worth it. llvm-svn: 102391
* Sink the _GNU_SOURCE definition down into the target configuration,Douglas Gregor2010-04-211-24/+0
| | | | | | | and only define it where we know we need it---Linux and Cygwin. Thanks to Chris for the prodding. llvm-svn: 101989
* Only predefine the macro _GNU_SOURCE in C++ mode when we're on aDouglas Gregor2010-04-161-2/+24
| | | | | | | platform that typically uses glibc. Fixes a Boost.Thread compilation failure. llvm-svn: 101450
* When given unsaved files in clang_createTranslationUnitFromSourceFile,Douglas Gregor2010-02-271-1/+2
| | | | | | | | | | copy the source buffers provided rather than referencing them directly, so that the caller can free those buffers immediately after calling clang_createTranslationUnitFromSourceFile(). Otherwise, we risk hitting those buffers later (when building source ranges, forming diagnostics, etc.). llvm-svn: 97296
* Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixesDaniel Dunbar2010-02-101-0/+2
| | | | | | | calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787
* Extend clang_createTranslationUnitFromSourceFile() to support creatingDouglas Gregor2010-01-231-10/+31
| | | | | | translation units that include unsaved files. llvm-svn: 94258
* Move the MacroBuilder utilitiy to its own header. Update references.Chandler Carruth2010-01-201-0/+1
| | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982
* Fix an invalid Twine use spotty by abbeyj, it isn't safe to use TwineDaniel Dunbar2010-01-201-1/+4
| | | | | | | temporaries (this is one reason I'm nervous about propagating their use beyond particularly performance critical places). llvm-svn: 93981
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-131-2/+7
| | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331
* Fix PR5982, a refacto in checking for '=' in a -D argument.Daniel Dunbar2010-01-101-8/+5
| | | | llvm-svn: 93088
* Use MacroBuilder for TargetDefines instead of std::vector.Benjamin Kramer2010-01-091-3/+1
| | | | llvm-svn: 93058
* Move MacroBuilder into Frontend/Utils.h and clean it up a bit.Benjamin Kramer2010-01-091-127/+89
| | | | llvm-svn: 93057
* Rework InitPreprocessor to use a MacroBuilder class instead of pushing aroundBenjamin Kramer2010-01-091-248/+208
| | | | | | | | | | | | std::vectors. - MacroBuilder wraps a raw_ostream so it can easily write to any buffer supported by raw_ostream. - MacroBuilder's method take Twines for easy string concatenation (this was done with sprintf and temporary buffers before). - Targets still use std::vector as they don't have access to the builder. llvm-svn: 93051
* Switch UndefineBuiltinMacro() over to using StringRefKovarththanan Rajaratnam2010-01-091-2/+2
| | | | llvm-svn: 93049
* Switch DefineBuiltinMacro() over to using StringRefKovarththanan Rajaratnam2010-01-091-8/+12
| | | | llvm-svn: 93048
* Convert from char pointer to char arrayKovarththanan Rajaratnam2010-01-071-6/+6
| | | | llvm-svn: 92923
* Tigthen scope of local char arrayKovarththanan Rajaratnam2010-01-071-1/+1
| | | | llvm-svn: 92917
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-041-0/+3
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70926 llvm-svn: 90596
* Fix two more diagnostic-on-stderr instances that thought they could hide ↵Daniel Dunbar2009-12-031-10/+10
| | | | | | from me -- they thought wrong. llvm-svn: 90442
* Extend -remap-file=from;to to permit mapping from a non-existentDouglas Gregor2009-12-021-4/+5
| | | | | | | | | | | | file. This is accomplished by introducing the notion of a "virtual" file into the file manager, which provides a FileEntry* for a named file whose size and modification time are known but which may not exist on disk. Added a cute little test that remaps both a .c file and a .h file it includes to alternative files. llvm-svn: 90329
* Move file-remapping logic into InitPreprocesor. No functionality changeDouglas Gregor2009-12-021-0/+53
| | | | llvm-svn: 90322
* Exit the command line into <built-in> instead of going directly from the ↵Rafael Espindola2009-12-011-0/+5
| | | | | | | | command line to the input file. We passed <built-in> on the way in, so we should pass it again on the way out. llvm-svn: 90250
* Define __SIG_ATOMIC_WIDTH__ for use in stdint.h.Ken Dyck2009-11-221-0/+1
| | | | llvm-svn: 89597
* Define __WCHAR_WIDTH__ for use in stdint.h.Ken Dyck2009-11-191-0/+1
| | | | llvm-svn: 89353
* Add __WINT_WIDTH__ to paramaterize the limits of WINT_MIN and WINT_MAX in Ken Dyck2009-11-191-0/+1
| | | | | | stdint.h. llvm-svn: 89348
* Add __SIZE_WIDTH__ to eventually replace __SIZE_TYPE__ in stdint.h.Ken Dyck2009-11-191-0/+1
| | | | llvm-svn: 89346
* Restore __INTMAX_TYPE__, __UINTMAX_TYPE__, __PTRDIFF_TYPE__, andKen Dyck2009-11-191-0/+4
| | | | | | | __INTPTR_TYPE__ as the last is used in the test/CodeGen/const-init.c and all could potentially be in use in the wild. My apologies. llvm-svn: 89345
* Remove __PTRDIFF_TYPE__ as it is no longer needed by stdint.h. It has been Ken Dyck2009-11-191-1/+0
| | | | | | replaced with __PTRDIFF_WIDTH__. llvm-svn: 89344
* Add __PTRDIFF_WIDTH__ macro to eventually replace __PTRDIFF_TYPE__ in stdint.h.Ken Dyck2009-11-191-0/+1
| | | | llvm-svn: 89342
* 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
OpenPOWER on IntegriCloud