summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
Commit message (Collapse)AuthorAgeFilesLines
* -fno-rtti is now the default.Chris Lattner2010-01-241-1/+0
| | | | llvm-svn: 94379
* Rename getClangFullVendorVersion() to getClangFullVersion().Ted Kremenek2010-01-231-1/+1
| | | | llvm-svn: 94273
* Add 'clang_getClangVersion()' function to CIndex. This exposes the full ↵Ted Kremenek2010-01-221-2/+2
| | | | | | Clang version string through the CIndex API. llvm-svn: 94242
* Move version string generation (e.g., "clang 1.1 ...") to ↵Ted Kremenek2010-01-222-6/+22
| | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). llvm-svn: 94235
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-221-3/+21
| | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231
* Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵Ted Kremenek2010-01-221-1/+4
| | | | | | return a StringRef. llvm-svn: 94213
* Update to use llvm/utils/GetSourceVersion to detect version number, instead ofDaniel Dunbar2010-01-211-1/+1
| | | | | | assuming SVN. This should be fixed to not necessarily be an integer. llvm-svn: 94081
* 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
* Actually remove the include that r93974 made unnecessary.Chandler Carruth2010-01-201-1/+0
| | | | llvm-svn: 93975
* long long is 64 bits on msp430Anton Korobeynikov2010-01-141-1/+2
| | | | llvm-svn: 93451
* Pre-emptive bugfixes in the diagnostics code: allow arbitrary punctuationJohn McCall2010-01-141-8/+35
| | | | | | | characters to be escaped and implement a scan-forward function which properly respects brace nesting. llvm-svn: 93447
* Add the %ordinal format modifier for turning '1' into '1st'. Hard-coded forJohn McCall2010-01-141-0/+35
| | | | | | | English right now; would not be impossible to grab a special format string from the diagnostic pool and localize that way. llvm-svn: 93390
* Perform format-expansion on %select results.John McCall2010-01-131-5/+13
| | | | llvm-svn: 93377
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-131-4/+0
| | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331
* Define __weak attribute for objective-c pointers inFariborz Jahanian2010-01-121-0/+4
| | | | | | win32 targets. Fixes radar 7530235. Daniel please review. llvm-svn: 93246
* Hopefully unbreak build with g++ >= 4.3.Benjamin Kramer2010-01-091-0/+1
| | | | llvm-svn: 93060
* Use MacroBuilder for TargetDefines instead of std::vector.Benjamin Kramer2010-01-091-233/+217
| | | | llvm-svn: 93058
* improve support for dragonfly, patch by Sascha Wildner!Chris Lattner2010-01-091-0/+2
| | | | llvm-svn: 93044
* move a few more symbols to .rodata/.data.rel.roNuno Lopes2009-12-231-1/+1
| | | | llvm-svn: 92012
* implement -W[no-]fatal-errors, patch by Christian Adåker!Chris Lattner2009-12-221-0/+13
| | | | llvm-svn: 91938
* ARM: Remove a FIXME, it's not actually more complicated than that.Daniel Dunbar2009-12-221-1/+0
| | | | llvm-svn: 91924
* ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly".Daniel Dunbar2009-12-211-9/+59
| | | | | | | | - Correctly is in quotes, because we are following what I interpreted as GCC's intent (which diverges from practice, naturally). - Also, fix the arch define for arm1136jf-s. llvm-svn: 91855
* ARM: Use front-end specific target features "soft-float" and ↵Daniel Dunbar2009-12-191-4/+36
| | | | | | "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. llvm-svn: 91755
* Targets: Allow CreateTargetInfo to mutate the target features.Daniel Dunbar2009-12-191-7/+6
| | | | | | | - In particular, it can claim features for itself instead of always passing them on to LLVM. - This allows using the target features as a generic mechanism for passing target specific options to the TargetInfo instance, which may need them for initializing preprocessor defines, etc. llvm-svn: 91753
* Add f80 entry for windows targetsAnton Korobeynikov2009-12-191-2/+2
| | | | llvm-svn: 91746
* Use proper alignment for i16/i32 on msp430. This fixes PR5815.Anton Korobeynikov2009-12-191-1/+1
| | | | llvm-svn: 91739
* ARM: Define __thumb2__ for V6T2 targets and only defineDaniel Dunbar2009-12-181-5/+4
| | | | | | __USING_SJLJ_EXCEPTIONS__ on Darwin. llvm-svn: 91705
* ARM: Fix predefines (__ARM_ARCH_..., __REGISTER_PREFIX).Daniel Dunbar2009-12-181-54/+59
| | | | | | | - This should be done leveraging the backend, but I'm a little refactored out. I'll fix it one day, I promise. llvm-svn: 91700
* Tweaks for PS3 target.John Thompson2009-12-181-0/+3
| | | | llvm-svn: 91685
* Removing trailing directory separator, to make stat workJohn Thompson2009-12-181-0/+5
| | | | llvm-svn: 91684
* fix PR5689: add support for 'o' and 'V' asm input operandsNuno Lopes2009-12-161-0/+2
| | | | llvm-svn: 91540
* FileManager: Do not cache failed stats, it is easy to construct commonDaniel Dunbar2009-12-111-10/+9
| | | | | | | | | | | | | | | | | | inconsistent situations if we do, and they are not important for PCH performance (which currently only needs the stats to construct the initial FileManager entries). - No test case, sorry, the machinations are too involved. This occurs when, for example, the build makes a PCH file and has a header map or a -I for a directory that does not yet exist. It is possible we will cache the negative stat on that directory, and then in the build we will never find header files inside that dir. For PCH we don't need these stats anyway for performance, so this also makes PCH files smaller w/ no loss. I hope to eventually eliminate the stat cache entirely. llvm-svn: 91082
* Add a pretty horrible hack to prevent clang from crashing with inconsistent PCHDaniel Dunbar2009-12-061-2/+18
| | | | | | | | | | | | | files. - The issue is that PCH uses a stat cache, which may reference files which have been deleted or moved. In such cases ContentCache::getBuffer was returning 0 but most clients are incapable of dealing with this (i.e., they don't). For the time being, resolve this issue by just making up some invalid file contents and. Eventually we should detect that we are in an inconsistent situation and error out with a nice message that the PCH is out of date. llvm-svn: 90699
* Remove 'LangOpts' from Diagnostic (added in ↵Steve Naroff2009-12-051-1/+0
| | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=90642). Simply use the 'LangOpts' member already present in TextDiagnosticPrinter. Sorry for the confusion! llvm-svn: 90664
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-1/+2
| | | | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 Note - This commit only includes the fix for: <rdar://problem/6309338> slightly different error message format for Visual Studio. The fix for <rdar://problem/6845623> from protocol to template. is separate/forthcoming. llvm-svn: 90642
* Minor cleanup to the code-completion-point logic suggested by Chris.Douglas Gregor2009-12-031-2/+1
| | | | llvm-svn: 90459
* Extend -remap-file=from;to to permit mapping from a non-existentDouglas Gregor2009-12-021-22/+73
| | | | | | | | | | | | 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
* Extend the source manager with the ability to override the contents ofDouglas Gregor2009-12-021-78/+28
| | | | | | | | | | files with the contents of an arbitrary memory buffer. Use this new functionality to drastically clean up the way in which we handle file truncation for code-completion: all of the truncation/completion logic is now encapsulated in the preprocessor where it belongs (<rdar://problem/7434737>). llvm-svn: 90300
* Eliminate the unnecessary FirstFID cache variable from the source manager's ↵Douglas Gregor2009-12-021-6/+27
| | | | | | ContentCache llvm-svn: 90294
* In SourceManager::isBeforeInTranslationUnit, if we are trying to compare two ↵Daniel Dunbar2009-12-011-24/+14
| | | | | | | | | | source locations with no common ancestor in the include stack, determine order by assuming memory buffers preceed files, and then that FileIDs are created in order. The later assumption is patently false, but this was already broken -- this situation is conceptually impossible, my feeling is we should fix SourceManager and friends to make it impossible in practice as well. However, we need to fix PR5662 and perhaps some other things involving memory buffers first. In the short term I'm pretty sure this is reliable. Chris, Argiris, is this going to break anything that wasn't already broken? llvm-svn: 90280
* pass the reason for failure up from MemoryBuffer and report itChris Lattner2009-12-011-2/+2
| | | | | | | | | | | | in diagnostics when we fail to open a file. This allows us to report things like: $ clang test.c -I. test.c:2:10: fatal error: error opening file './foo.h': Permission denied #include "foo.h" ^ llvm-svn: 90276
* Convert Diagnostic::getCustomDiagID to take a StringRef.Daniel Dunbar2009-12-011-2/+2
| | | | llvm-svn: 90244
* This patch adds a PUNCTUATOR macro (specialization of TOK) in TokenKinds.def ↵Kovarththanan Rajaratnam2009-11-281-53/+2
| | | | | | and makes use of it in tok::getTokenSimpleSpelling. llvm-svn: 90042
* Add SigAtomicType to TargetInfo, Needed for MSP and PIC Targets, Credit to ↵Edward O'Callaghan2009-11-212-0/+3
| | | | | | Ken Dyck. llvm-svn: 89520
* Added preliminary support step for PS3John Thompson2009-11-191-0/+47
| | | | llvm-svn: 89362
* Eliminate TargetInfo::getDefaultLangOptions, this kind of logic is better doneDaniel Dunbar2009-11-171-24/+0
| | | | | | in the driver. llvm-svn: 89073
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-171-2/+0
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. llvm-svn: 89058
* Move -fms-extensions defaulting to driver, instead of using ↵Daniel Dunbar2009-11-171-9/+0
| | | | | | getDefaultLangOptions. llvm-svn: 89057
* Move char-is-signed defaulting to driver, instead of usingDaniel Dunbar2009-11-171-13/+0
| | | | | | getDefaultLangOptions. llvm-svn: 89053
* Add MIPS support to Triple for Linux and the PSP. Credit to Bruno Cardoso Lopes.Edward O'Callaghan2009-11-151-0/+163
| | | | llvm-svn: 88850
OpenPOWER on IntegriCloud