summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
Commit message (Collapse)AuthorAgeFilesLines
...
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-151-5/+56
| | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
* Move DISABLE_INLINE to the front of the decl so MSVC can parse it. Patch by ↵Benjamin Kramer2009-11-141-2/+2
| | | | | | Amine Khaldi! llvm-svn: 88797
* do not store wchar/char16/char32/intmax width/alignment infoChris Lattner2009-11-122-11/+0
| | | | | | | 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
* Simplifiy target feature handling by coalescing all the logic intoDaniel Dunbar2009-11-111-17/+22
| | | | | | InitializeCompileOptions. llvm-svn: 86826
* teach the various targets what native integer types they have.Chris Lattner2009-11-072-18/+19
| | | | llvm-svn: 86395
* Strip off the /clang/tools/clang at the end of the Subversion URL, if it's thereDouglas Gregor2009-11-051-0/+4
| | | | llvm-svn: 86195
* Eliminate tablsJohn Thompson2009-11-051-2/+2
| | | | llvm-svn: 86183
* clean up integer preprocessor type definitions, patch by Ken Dyck!Chris Lattner2009-11-051-4/+20
| | | | llvm-svn: 86177
* Adding -fshort-wchar option.John Thompson2009-11-051-0/+10
| | | | llvm-svn: 86167
* Implement support for parsing dependent template-ids that refer toDouglas Gregor2009-11-041-0/+14
| | | | | | | | overloaded operators, e.g., p->template operator+<T>() llvm-svn: 85989
* pr5371 likely has nothing to do with this.Chris Lattner2009-11-031-1/+0
| | | | llvm-svn: 85862
* Add note to FIXME about PR5371.Edward O'Callaghan2009-11-021-0/+1
| | | | llvm-svn: 85825
* rename getTypeSigned() -> isTypeSigned() per daniel's review.Chris Lattner2009-10-251-2/+2
| | | | llvm-svn: 85076
* Fix cmake failure trying to get SVN info for non-SVN trees.Daniel Dunbar2009-10-241-1/+1
| | | | llvm-svn: 85015
* Add a preprocessor define for adding a "near" section attribute for allowing Sanjiv Gupta2009-10-241-0/+2
| | | | | | objects to be placed at shared memory. llvm-svn: 85007
* Fixed undefined behavior in pushMappings when the stack has to resize.John Thompson2009-10-231-0/+2
| | | | llvm-svn: 84924
* add helpful methods to TargetInfo for querying builtin integer type properties,Chris Lattner2009-10-211-0/+51
| | | | | | patch by Ken Dyck! llvm-svn: 84746
* hookize wint_t's definition, patch by Edward O'Callaghan (from PR5233).Chris Lattner2009-10-211-0/+1
| | | | llvm-svn: 84740
* teach FormatDiagnostic to aggregate previously formatted arguments andChris Lattner2009-10-201-3/+25
| | | | | | | | | pass them down into the ArgToStringFn implementation. This allows redundancy across operands to a diagnostic to be eliminated. This isn't used yet, so no functionality change. llvm-svn: 84602
* PR5218: Replace IdentifierInfo::getName with StringRef version, now that clientsDaniel Dunbar2009-10-182-4/+4
| | | | | | are updated. llvm-svn: 84447
* The AuroraUX toolchain has conflicting wchar_t between the system stdlib.h ↵Edward O'Callaghan2009-10-181-0/+35
| | | | | | header and the clang stddef.h header where clang was defining as int where we use long. llvm-svn: 84416
* Avoid std::string thrashing in MultiKeywordSelector::getName(), and simplify.Daniel Dunbar2009-10-171-19/+12
| | | | llvm-svn: 84343
* Use raw_ostream for formatting integers, and use IdentifierInfo::getNameStrDaniel Dunbar2009-10-171-10/+4
| | | | | | | instead of getName. - -2 FIXMEs. llvm-svn: 84337
* Add support for a chain of stat caches in the FileManager, rather thanDouglas Gregor2009-10-161-2/+37
| | | | | | | | | only supporting a single stat cache. The immediate benefit of this change is that we can now generate a PCH/AST file when including another PCH file; in the future, the chain of stat caches will likely be useful with multiple levels of PCH files. llvm-svn: 84263
* increase helpfulness of assert message.Chris Lattner2009-10-161-1/+6
| | | | llvm-svn: 84240
* Disallow arbitrary custom inline asm constraints for msp430.Anton Korobeynikov2009-10-151-2/+2
| | | | llvm-svn: 84219
* fix some cfstring related issues: Chris Lattner2009-10-141-4/+0
| | | | | | | | | | | | | 1) -fwritable-string does affect the non-utf16 version of cfstrings just not the utf16 ones. 2) utf16 strings should always be marked constant, as the __TEXT segment is readonly. 3) The name of the global doesn't matter, remove it from TargetInfo. 4) Trust the asmprinter to drop cstrings into the right section, like llvmgcc does now. This fixes rdar://7115750 llvm-svn: 84077
* Unify our diagnostic printing for errors of the form, "we didn't likeDouglas Gregor2009-10-131-0/+1
| | | | | | | | | | what we found when we looked into <blah>", where <blah> is a DeclContext*. We can now format DeclContext*'s in nice ways, e.g., "namespace N", "the global namespace", "'class Foo'". This is part of PR3990, but we're not quite there yet. llvm-svn: 84028
* fix PR4938 by recognizing % as a modifier on outputs,Chris Lattner2009-10-131-0/+3
| | | | | | previously we only recognized it on inputs. llvm-svn: 83939
* "Someone pointed out that in my previous Targets.cpp patch I didn'tMike Stump2009-10-081-0/+1
| | | | | | | handle the long size difference for one of the Windows targets." Patch by John Thompson. llvm-svn: 83592
* Installation of Clang libraries and headers, from Axel Naumann!Douglas Gregor2009-10-081-3/+0
| | | | llvm-svn: 83582
* Provide a common set of routines in Version.h that return SubversionDouglas Gregor2009-10-053-16/+24
| | | | | | | branch/revision information. Use that information in the driver, rather than one-off branch/revision computation. llvm-svn: 83321
* Pre-commit commit to get URL keyword expansion for Clang version informationDouglas Gregor2009-10-051-0/+63
| | | | llvm-svn: 83319
* Handle Eli remark on mingw __declspec macro definitionCedric Venet2009-09-271-1/+1
| | | | llvm-svn: 82894
* Factor Windows target into VS, MinGW and Cygwin variants.Daniel Dunbar2009-09-231-11/+128
| | | | | | - Patch by John Thompson! llvm-svn: 82621
* implement support for __builtin_eh_return_data_regno on x86-32 and x86-64.Chris Lattner2009-09-231-0/+12
| | | | | | This implements PR5034 and rdar://6836445. llvm-svn: 82614
* Reconcile Clang/ARM target data string with llvm-gcc (module eabi weirdness).Daniel Dunbar2009-09-221-3/+20
| | | | llvm-svn: 82578
* Replace the -code-completion-dump option with Douglas Gregor2009-09-221-2/+79
| | | | | | | | | | | -code-completion-at=filename:line:column which performs code completion at the specified location by truncating the file at that position and enabling code completion. This approach makes it possible to run multiple tests from a single test file, and gives a more natural command-line interface. llvm-svn: 82571
* don't stick an uninitialized 'stat' buf into the stat cache, fill itChris Lattner2009-09-181-0/+1
| | | | | | with zeros. This avoids a GCC warning (PR5000) llvm-svn: 82194
* Initial implementation of a code-completion interface in Clang. InDouglas Gregor2009-09-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | essence, code completion is triggered by a magic "code completion" token produced by the lexer [*], which the parser recognizes at certain points in the grammar. The parser then calls into the Action object with the appropriate CodeCompletionXXX action. Sema implements the CodeCompletionXXX callbacks by performing minimal translation, then forwarding them to a CodeCompletionConsumer subclass, which uses the results of semantic analysis to provide code-completion results. At present, only a single, "printing" code completion consumer is available, for regression testing and debugging. However, the design is meant to permit other code-completion consumers. This initial commit contains two code-completion actions: one for member access, e.g., "x." or "p->", and one for nested-name-specifiers, e.g., "std::". More code-completion actions will follow, along with improved gathering of code-completion results for the various contexts. [*] In the current -code-completion-dump testing/debugging mode, the file is truncated at the completion point and EOF is translated into "code completion". llvm-svn: 82166
* Fix typo.Mike Stump2009-09-171-1/+1
| | | | llvm-svn: 82164
* ARM: Incremental improvement to preprocessor defines.Daniel Dunbar2009-09-171-13/+38
| | | | | | - Based on patch by Shantonu. llvm-svn: 82147
* Add ARM register names and aliases.Daniel Dunbar2009-09-171-75/+107
| | | | | | | | - Patch by Shantonu Sen! <rdar://problem/6922650> clang doesn't know about ARM registers for inline asm clobber lists llvm-svn: 82132
* fix some ppc register name issues, patch by Richard Pennington!Chris Lattner2009-09-161-45/+78
| | | | llvm-svn: 82009
* Add TargetInfo::getABI(), and base ARM APCS vs AAPCS choice on that.Daniel Dunbar2009-09-141-1/+9
| | | | llvm-svn: 81735
* ARM target tweaks.Daniel Dunbar2009-09-141-2/+24
| | | | | | | - Change TargetData string to match llvm-gcc. - Some -target-abi support for 'apcs-gnu', most importantly the alignment of double and long long changes. llvm-svn: 81732
* Swizzle the target triple based on -mthumb, and update clang-cc to recognizeDaniel Dunbar2009-09-111-0/+1
| | | | | | thumb-foo-bar as an ARM target. llvm-svn: 81497
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-099-583/+582
| | | | llvm-svn: 81346
* Replace some instances of std::string with StringRefs.Benjamin Kramer2009-09-051-0/+3
| | | | llvm-svn: 81079
* Add basic support for -pthread.Daniel Dunbar2009-09-031-0/+9
| | | | | | - Patch by David Chisnall, with PCH and Darwin support mixed in. llvm-svn: 80883
OpenPOWER on IntegriCloud