summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Comment fixes.Daniel Dunbar2009-04-201-6/+6
| | | | llvm-svn: 69562
* Lift GetClassSizeInfo out of GenerateClass, add a FIXME.Daniel Dunbar2009-04-191-29/+37
| | | | | | - No functionality change. llvm-svn: 69561
* implement "#pragma GCC diagnostic". Besides being a nice feature, thisChris Lattner2009-04-192-2/+92
| | | | | | | | | will let us test for multiple different warning modes in the same file in regression tests. This implements rdar://2362963, a 10-year old feature request :) llvm-svn: 69560
* move group twiddling options into Diagnostic.cpp instead ofChris Lattner2009-04-193-49/+64
| | | | | | | Warnings.cpp. Warnings.cpp now doesn't need to #include tblgen produced output directly. llvm-svn: 69559
* don't crash on invalid ranges in -fprint-source-range-infoChris Lattner2009-04-191-0/+3
| | | | | | mode, just ignore them as usual. llvm-svn: 69558
* Fix PR4007: clang doesn't know -Werror-foo is the same as -Werror=fooChris Lattner2009-04-192-3/+5
| | | | llvm-svn: 69557
* Warn about uses of #pragma STDC FENV_ACCESS ON, since we don't Chris Lattner2009-04-193-2/+7
| | | | | | | | | | support it. I don't know what evaluation method we use for complex arithmetic, so I don't know whether/if we should warn about use of CX_LIMITED_RANGE. This concludes my planned hacking on STDC pragmas, flame away :) llvm-svn: 69556
* Conditional operator C++ checking complete. What issues remain are in more ↵Sebastian Redl2009-04-194-18/+81
| | | | | | general code. llvm-svn: 69555
* diagnose invalid syntax of STDC pragmas.Chris Lattner2009-04-193-8/+52
| | | | llvm-svn: 69554
* Print an error for uses of __thread on targets which don't support it.Eli Friedman2009-04-194-2/+6
| | | | llvm-svn: 69553
* Add target property for whether thread-local storage is supported. Eli Friedman2009-04-193-3/+16
| | | | | | | | Let me know if I messed up for some target. Note that for Windows, we should be able to support it (MSVC supports "__declspec(thread)"), but I'm pretty sure LLVM doesn't know how to generate the correct code. llvm-svn: 69552
* reject invalid stuff in the STDC namespace.Chris Lattner2009-04-193-10/+14
| | | | llvm-svn: 69551
* stub out STDC #pragmas.Chris Lattner2009-04-192-0/+61
| | | | llvm-svn: 69550
* Forward f[no-]dollars-in-identifiers to clang, when specified.Daniel Dunbar2009-04-192-3/+14
| | | | llvm-svn: 69549
* Bring member pointer operands of the conditional operator to a common type. ↵Sebastian Redl2009-04-192-7/+72
| | | | | | We're getting there ... llvm-svn: 69548
* basic support for -Wunknown-pragmas, more coming.Chris Lattner2009-04-193-3/+10
| | | | llvm-svn: 69547
* Forward -fno-diagnostics-fixit-info to clang-cc.Daniel Dunbar2009-04-192-0/+7
| | | | llvm-svn: 69546
* PR3853: Add CodeGen support for __thread.Eli Friedman2009-04-193-11/+16
| | | | llvm-svn: 69545
* move token paste poisoning diagnostics to after the instantiation locChris Lattner2009-04-192-11/+29
| | | | | | | for a token is set, this makes the diagnostic "expanded from stack" work for this diagnostic. Add a testcase for PR3918. llvm-svn: 69544
* Tests for __thread specifier.Eli Friedman2009-04-191-0/+21
| | | | llvm-svn: 69543
* Add more thorough/correct checking for invalid __thread specifiers.Eli Friedman2009-04-194-20/+39
| | | | llvm-svn: 69542
* Silence gcc warning.Eli Friedman2009-04-191-1/+1
| | | | llvm-svn: 69541
* pick a smaller header, one that we control to test this.Chris Lattner2009-04-191-1/+1
| | | | llvm-svn: 69540
* rename test for consistency with other pragma test.Chris Lattner2009-04-191-0/+0
| | | | llvm-svn: 69539
* merge pragma poison tests into one file with -verify mode.Chris Lattner2009-04-194-21/+18
| | | | llvm-svn: 69538
* merge two testsChris Lattner2009-04-192-17/+18
| | | | llvm-svn: 69537
* Fix PR3918: Invalid use of __VA_ARGS__ not diagnosed,Chris Lattner2009-04-191-2/+13
| | | | | | | by rejecting invalid poisoned tokens in the token pasting path. llvm-svn: 69536
* Another piece of the conditional operator puzzle. We'll want to use ↵Sebastian Redl2009-04-193-18/+99
| | | | | | FindCompositePointerType in some other places, too. llvm-svn: 69534
* convert to -verify mode.Chris Lattner2009-04-191-2/+2
| | | | llvm-svn: 69532
* Fix PR4006, incorrect handling of __VA_ARGS__ when it was the first tokenChris Lattner2009-04-192-9/+15
| | | | | | | in a function-like macro body. This has the added bonus of moving some function-like macro specific code out of the object-like macro codepath. llvm-svn: 69530
* actually just do this on all x86 targets, it won't hurtChris Lattner2009-04-191-10/+5
| | | | | | non-glibc ones. llvm-svn: 69528
* Define __NO_MATH_INLINES on linux/x86 so that we don't get inlineChris Lattner2009-04-191-0/+10
| | | | | | | | | | functions in glibc header files that use FP Stack inline asm which the backend can't deal with (PR879). This "fixes" PR3970 for linux. Other affected systems should do similar things. Maybe this should just go to the general i386/x86-64 sections? llvm-svn: 69527
* implement compiler support for -fno-diagnostics-fixit-info,Chris Lattner2009-04-193-7/+16
| | | | | | rdar://6805442 llvm-svn: 69525
* invalid directives can occur in #if 0 code, just pass themChris Lattner2009-04-191-1/+4
| | | | | | | through like other directives PTH doesn't care about. This should fix rdar://6804029 llvm-svn: 69524
* make PTH not crash on a null directive (# on its own line)Chris Lattner2009-04-191-2/+4
| | | | llvm-svn: 69523
* use isNot instead of !isChris Lattner2009-04-191-3/+4
| | | | llvm-svn: 69522
* fix -fdollars-in-identifiers to have a default that is overriden Chris Lattner2009-04-191-4/+5
| | | | | | by the command line option if present. llvm-svn: 69521
* fix rdar://6804322 by wiring up -fdollars-in-identifiersChris Lattner2009-04-192-8/+21
| | | | | | with assembler-with-cpp mode. llvm-svn: 69520
* silence a warning, it isn't clear what the right answer is here,Chris Lattner2009-04-191-1/+1
| | | | | | will talk to steve. llvm-svn: 69519
* convert to -verify mode.Chris Lattner2009-04-191-12/+11
| | | | llvm-svn: 69518
* silence a warning, I need to talk to Devang about this code.Chris Lattner2009-04-191-1/+1
| | | | llvm-svn: 69517
* Fix rdar://6804402 - crash on objc implementations declared withChris Lattner2009-04-193-11/+36
| | | | | | | @class but no implementation. This was broken in all 3 runtime impls. llvm-svn: 69512
* rearrange #include order.Chris Lattner2009-04-191-2/+2
| | | | llvm-svn: 69511
* run the jump checker on blocks, even though they don't have gotos,Chris Lattner2009-04-193-2/+27
| | | | | | they do allow switches. llvm-svn: 69510
* add a new Sema::CurFunctionNeedsScopeChecking bool that is used to avoid Chris Lattner2009-04-195-18/+28
| | | | | | | calling into the jump checker when a function or method is known to contain no VLAs or @try blocks. llvm-svn: 69509
* test that vlas are checked in an objc method context.Chris Lattner2009-04-191-0/+16
| | | | llvm-svn: 69508
* apparently gotos aren't allowed at all in blocks. Stub out a testcase for ↵Chris Lattner2009-04-191-0/+24
| | | | | | when/if they are. llvm-svn: 69507
* more testcases of variably modified types.Chris Lattner2009-04-191-1/+15
| | | | llvm-svn: 69506
* move jump scope checking and related code out into its own file, SemaDecl.cpp isChris Lattner2009-04-195-267/+297
| | | | | | already too large. llvm-svn: 69505
* Some more tweaks to driver documentation.Daniel Dunbar2009-04-191-22/+29
| | | | llvm-svn: 69504
OpenPOWER on IntegriCloud