summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Match up anonymous structs/unions in the ASTImporter. Previously, we'dDouglas Gregor2012-10-261-3/+101
| | | | | | | | only actually get the answer right if there was only a single anonymous struct/union at that level. This is part of <rdar://problem/11904570>; the test will go into LLDB itself. llvm-svn: 166781
* Add comments for RemoveRedundantMsgs, rename it to removeRedundantMsgs() per ↵Ted Kremenek2012-10-261-4/+13
| | | | | | Jordan's feedback. llvm-svn: 166778
* Eliminate some longstanding FIXMEs regarding variadic templates in theDouglas Gregor2012-10-261-8/+2
| | | | | | ASTImporter. llvm-svn: 166777
* In the ASTImporter, don't try to emit a diagnostic if we're notDouglas Gregor2012-10-261-120/+154
| | | | | | allowed to complain about a failure. llvm-svn: 166776
* Remove clang-fixit from tools page as it is currently not planned as aDaniel Jasper2012-10-261-13/+5
| | | | | | | separate tool. Review: http://llvm-reviews.chandlerc.com/D81 llvm-svn: 166766
* These tests require an actual x86 registered target, so mark them as such. ↵David Tweed2012-10-262-0/+2
| | | | | | | | Tested on ARM. Patch by Joey Gouly. llvm-svn: 166765
* Fix grammar-o.Bill Wendling2012-10-262-3/+3
| | | | llvm-svn: 166759
* Fix test suppressed in r166683 on 32-bit LinuxAlexey Samsonov2012-10-261-5/+1
| | | | llvm-svn: 166758
* Declare type of flags to be used in a __block (byref)Fariborz Jahanian2012-10-261-0/+12
| | | | | | variable descriptor captured by a block. llvm-svn: 166746
* Oz optimization level sets ForceSizeOpt attribute for each functionQuentin Colombet2012-10-262-0/+28
| | | | llvm-svn: 166744
* X86 SSE Intrinsics: update header for sqrt_ss, rsqrt_ss and rcp_ss.Manman Ren2012-10-262-3/+37
| | | | | | | There intrinsics pass through the upper FP values from the input. rdar://12558838 llvm-svn: 166743
* Recommit Eric's code to validate ASM string's constraints and modifiers.Bill Wendling2012-10-256-4/+107
| | | | | | | | | | | | | This code checks the ASM string to see if the output size is able to fit within the variable specified as the output. For instance, scalar-to-vector conversions may not really work. It's on by default, but can be turned off with a flag if you think you know what you're doing. This is placed under a flag ('-Wasm-operand-widths') and flag group ('-Wasm'). <rdar://problem/12284092> llvm-svn: 166737
* Fix the other occurrence of the problem fixed by r166731.Richard Smith2012-10-251-1/+1
| | | | llvm-svn: 166735
* Changing name of enum for block literal flags to representFariborz Jahanian2012-10-251-3/+3
| | | | | | what it is meant for. llvm-svn: 166734
* LLVM's hashing routines produce a size_t, and thus generate different values ↵Richard Smith2012-10-251-1/+5
| | | | | | for 32- and 64-bit host compilers. This really needs to be fixed -- the IR generated should not depend on the host -- but this change will get the bots green again. Proper fix to follow. llvm-svn: 166731
* TrackConstraintBRVisitor and ConditionBRVisitor can emit similarTed Kremenek2012-10-2513-5404/+5117
| | | | | | | | | | | | path notes for cases where a value may be assumed to be null, etc. Instead of having redundant diagnostics, do a pass over the generated PathDiagnostic pieces and remove notes from TrackConstraintBRVisitor that are already covered by ConditionBRVisitor, whose notes tend to be better. Fixes <rdar://problem/12252783> llvm-svn: 166728
* Add a more direct test for r166661.Richard Smith2012-10-251-6/+42
| | | | llvm-svn: 166727
* [ms-inline asm] Add a test case for r166723 and r166724.Chad Rosier2012-10-251-0/+14
| | | | llvm-svn: 166725
* [ms-inline asm] Add support for field lookup in the SemaCallback. Patch by Eli.Chad Rosier2012-10-252-0/+52
| | | | llvm-svn: 166723
* Add some new types in preparation of encoding of captured block variableFariborz Jahanian2012-10-251-0/+69
| | | | | | layout meta-data work. wip. llvm-svn: 166717
* Don't require exception handling for clang-tblgen.Joerg Sonnenberger2012-10-252-2/+0
| | | | llvm-svn: 166713
* Move the input files for test/PCH/badpch.c under test/PCH/Inputs/.Kaelyn Uhrain2012-10-253-2/+2
| | | | llvm-svn: 166711
* When capturing 'this' in a lambda, make sure to update the set ofDouglas Gregor2012-10-252-7/+30
| | | | | | | array-index starting values for the 'this' capture. Fixes <rdar://problem/12426831>. llvm-svn: 166709
* Comment to XML conversion: avoid memory allocation while pretty-printing theDmitri Gribenko2012-10-251-18/+22
| | | | | | declaration. llvm-svn: 166707
* CommentDumper: reorder members and add a comment.Dmitri Gribenko2012-10-251-6/+7
| | | | llvm-svn: 166705
* Provide comment describing what buildBlockDescriptor does.Fariborz Jahanian2012-10-251-1/+12
| | | | llvm-svn: 166703
* Don't throw exceptions in clang-tblgen by switching to PrintFatalError.Joerg Sonnenberger2012-10-254-18/+24
| | | | | | Add locations in a number of places, where they are available for free. llvm-svn: 166691
* Cleanup some clang code to use new type functions instead of using cast<>.Micah Villmow2012-10-256-24/+16
| | | | llvm-svn: 166684
* clang/test/CodeGenCXX/debug-info-thunk.cpp: Suppress it for now with ↵NAKAMURA Takumi2012-10-251-0/+4
| | | | | | XFAIL:*, due to failing on i686-*-*. llvm-svn: 166683
* Correct test inovocations to use %clang_cc1 rather than direct invocation ↵David Tweed2012-10-2510-17/+17
| | | | | | (so that it can have additional options set when trying to debug issues causing regressions). llvm-svn: 166681
* Modify the targets to set appropriate calling convention defaults and C ↵David Tweed2012-10-252-6/+8
| | | | | | | | variables when using a gnueabihf or aapcs-vfp target. Tested by me and Wei-Ren Chen. llvm-svn: 166679
* Initialize debug info for special cases of functions that lack declarations ↵Alexey Samsonov2012-10-257-7/+94
| | | | | | and are generated by Clang (global initializers/destructors, thunks) . Fixes PR13942. llvm-svn: 166676
* unittests/ToolingTest.cpp: Suppress ↵NAKAMURA Takumi2012-10-251-0/+2
| | | | | | newFrontendActionFactory.InjectsEndOfSourceFileCallback on Win32 for now. Investigating. llvm-svn: 166674
* Adds the possibility to inject a callback that's called after each ↵Manuel Klimek2012-10-252-8/+57
| | | | | | | | translation unit is processed. This is important when one wants to deduplicate results during one run over a translation unit by pointer identity of AST nodes. llvm-svn: 166671
* -fcatch-undefined-behavior checking for appropriate vptr value: Clang ↵Richard Smith2012-10-254-12/+94
| | | | | | CodeGen side. llvm-svn: 166661
* Take into account that there may be a BOM at the beginning of the file,Argyrios Kyrtzidis2012-10-252-3/+12
| | | | | | when computing the size of the precompiled preamble. llvm-svn: 166659
* Update warning-flag testDouglas Gregor2012-10-251-2/+1
| | | | llvm-svn: 166656
* Revert r166647 to rethink the patch...Bill Wendling2012-10-255-81/+1
| | | | llvm-svn: 166655
* Remove the old predefines-buffer diffing code completely. It's beenDouglas Gregor2012-10-253-388/+1
| | | | | | | replaced by the more efficient, cleaner preprocessor-option version that occurs earlier in PCH validation. llvm-svn: 166654
* Fix computation of predefines buffer from the preprocessor-optionDouglas Gregor2012-10-251-10/+1
| | | | | | checking, and disable the old predefines-buffer-diff'ing code path. llvm-svn: 166653
* When we're devirtualizing a method call, make sure the method has the ↵Eli Friedman2012-10-252-9/+8
| | | | | | | | correct IR type. Reported in the thread "devirtualisation appears to crash clang on covariant functions on ARM" on cfe-dev. llvm-svn: 166651
* ASTUnit doesn't actually care about the predefines; don't record them.Douglas Gregor2012-10-251-18/+2
| | | | llvm-svn: 166650
* The the preprocessor option validator to compute suggestedDouglas Gregor2012-10-252-17/+82
| | | | | | | predefines. We're not quite ready to cut over to these suggested predefines yet, however. llvm-svn: 166648
* Add some support for diagnosing possibly mismatched constraint, type size andBill Wendling2012-10-255-1/+81
| | | | | | | modifiers. (From an idea by Eric...) <rdar://problem/12284092> llvm-svn: 166647
* 'constexpr' and 'friend' are both declaration specifiers. Teach the parser ↵Richard Smith2012-10-252-4/+9
| | | | | | this, for better error recovery. llvm-svn: 166645
* PR14171: Don't crash if we hit one of the paths where GetFullTypeForDeclaratorRichard Smith2012-10-243-0/+27
| | | | | | rebuilds a function type, and that function type has parens around its name. llvm-svn: 166644
* Teach the PCH validator to check the preprocessor options, especiallyDouglas Gregor2012-10-247-12/+175
| | | | | | | | | | | | | | | the macros that are #define'd or #undef'd on the command line. This checking happens much earlier than the current macro-definition checking and is far cleaner, because it does a direct comparison rather than a diff of the predefines buffers. Moreover, it allows us to use the result of this check to skip over PCH files within a directory that have non-matching -D's or -U's on the command line. Finally, it improves the diagnostics a bit for mismatches, fixing <rdar://problem/8612222>. The old predefines-buffer diff'ing will go away in a subsequent commit. llvm-svn: 166641
* c-index-test.c: Split a format string. [-Woverlength-strings]NAKAMURA Takumi2012-10-241-1/+2
| | | | | FIXME: They are still long strings without formatter in printf(3)! llvm-svn: 166636
* [ms-inline asm] Test case for r166632.Chad Rosier2012-10-241-0/+16
| | | | llvm-svn: 166633
* Fix false positive in -Wunused-variable when a ctor call make involve cleanups.David Blaikie2012-10-242-0/+14
| | | | llvm-svn: 166625
OpenPOWER on IntegriCloud