summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Pass -fno-math-builtin from the Clang driver to -cc1 for the l32 arch.Eli Bendersky2013-07-242-0/+11
| | | | llvm-svn: 187061
* Rename feature test for lambda init-captures from cxx_generalized_capture toRichard Smith2013-07-242-5/+5
| | | | | | | | cxx_init_capture. "generalized" is neither descriptive nor future-proof. No compatibility problems expected, since we've never advertised having this feature. llvm-svn: 187058
* Update documentation to match current C++1y feature set.Richard Smith2013-07-243-5/+23
| | | | llvm-svn: 187055
* Make test pass in Release builds, IR names don't get emitted there.Benjamin Kramer2013-07-241-3/+3
| | | | llvm-svn: 187054
* Use ARM-style representation for C++ method pointers under PNaCl/EmscriptenMark Seaborn2013-07-243-16/+50
| | | | | | | | | | | | | | | | | | | Before this change, Clang uses the x86 representation for C++ method pointers when generating code for PNaCl. However, the resulting code will assume that function pointers are 0 mod 2. This assumption is not safe for PNaCl, where function pointers could have any value (especially in future sandboxing models). So, switch to using the ARM representation for PNaCl code, which makes no assumptions about the alignment of function pointers. Since we're changing the "le32" target, this change also applies to Emscripten. The change is beneficial for Emscripten too. Emscripten has a workaround to make function pointers 0 mod 2. This change would allow the workaround to be removed. See: https://code.google.com/p/nativeclient/issues/detail?id=3450 llvm-svn: 187051
* Sema: Minor const fixups and control flow tidying.Benjamin Kramer2013-07-243-100/+74
| | | | | | No functionality change. llvm-svn: 187047
* Add support for Adaptative matchers on the dynamic registry.Samuel Benzaquen2013-07-244-43/+143
| | | | | | | | | | | | | | Summary: Add support for Adaptative matchers on the dynamic registry. Each adaptative matcher is created with a function template. We instantiate the function N times, one for each possible From type and apply the techniques used on argument overloaded and polymorphic matchers to add them to the registry. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1201 llvm-svn: 187044
* clang-format: Initial (incomplete) support for the WebKit coding style.Daniel Jasper2013-07-243-0/+114
| | | | | | | | | | | This is far from implementing all the rules given by http://www.webkit.org/coding/coding-style.html The important new feature is the support for styles that don't have a column limit. For such styles, clang-format will (at the moment) simply respect the input's formatting decisions within statements. llvm-svn: 187033
* C++1y: track object lifetime during constexpr evaluation, and don't allowRichard Smith2013-07-246-61/+249
| | | | | | | objects to be used once their lifetimes end. This completes the C++1y constexpr extensions. llvm-svn: 187025
* Update docs.Manuel Klimek2013-07-241-8/+81
| | | | llvm-svn: 187022
* ObjectiveC migration: more migration toFariborz Jahanian2013-07-232-9/+22
| | | | | | instancetype of NSDictionary methods. llvm-svn: 187008
* ObjectiveC migrator: start migrating toFariborz Jahanian2013-07-233-4/+178
| | | | | | instancetype methods. llvm-svn: 187004
* ObjC migrator: more knobs toward doingFariborz Jahanian2013-07-233-3/+44
| | | | | | instancetype migration. llvm-svn: 187000
* [PowerPC64] Fix passing of single-vector-member structs to match ABI.Bill Schmidt2013-07-232-2/+15
| | | | | | | | | | | | | | | | | The 64-bit PowerPC ELF ABI requires a struct that contains a single vector member to be passed in a vector register as though the wrapping struct were not present. Instead we were passing this as a byval struct. The same logic was already present for floating-point arguments, so this patch just extends the logic to handle vector types. The new test case verifies that clang coerces the parameter and annotates it as inreg. Thanks, Bill llvm-svn: 186993
* Remove HelpText for -fno-diagnostics-show-note-include-stackHans Wennborg2013-07-231-1/+1
| | | | | | | The help text was wrong, and we already provide help text on the option that actually changes anything, i.e. -fdiagnostics-show-note-include-stack. llvm-svn: 186989
* Changed "an macro" to "a macro" in diagnostic note.Richard Trieu2013-07-232-4/+4
| | | | llvm-svn: 186988
* Remove support for CCC_ADD_ARGS. QA_OVERRIDE_GCC3_OPTIONS supersedes it.Rafael Espindola2013-07-232-23/+0
| | | | llvm-svn: 186983
* Removing a number of individual run lines and replacing them with single ↵Aaron Ballman2013-07-231-15/+12
| | | | | | line test cases. This reduces the number of test runs, provides the same coverage, and allows us to test that the attribute names are included in the diagnostic. llvm-svn: 186982
* ObjC migrator: Define family of methodsFariborz Jahanian2013-07-232-0/+49
| | | | | | | which are candidate for migrating to 'instancetype'. wip. llvm-svn: 186981
* Added the attribute name to the err_attribute_wrong_number_arguments ↵Aaron Ballman2013-07-2331-111/+149
| | | | | | | | diagnostic for clarity; updated almost all of the affected test cases. Thanks to Fariborz Jahanian for the suggestion! llvm-svn: 186980
* Removed useless source loc field in UnresolvedUsingTypenameDecl node.Enea Zaffanella2013-07-231-3/+0
| | | | llvm-svn: 186974
* Add new diagnostic messages when too many arguments are presented to aRichard Trieu2013-07-235-18/+385
| | | | | | | | | | | | | function-like macro. Clang will attempt to correct the arguments by detecting braced initializer lists: 1) If possible, suggest parentheses around arguments containing braced lists which will give the proper number of arguments. 2) If a braced list is detected at the start of a macro argument, it cannot be corrected by parentheses. Instead, just point out the location of these braced lists. llvm-svn: 186971
* Remove the -ccc-echo option that is now unused.Rafael Espindola2013-07-235-13/+6
| | | | llvm-svn: 186970
* [libclang] Expose the rest of the array types.Argyrios Kyrtzidis2013-07-236-4/+51
| | | | | | Patch by Che-Liang Chiou! llvm-svn: 186967
* Going back to using getName for consistency.Aaron Ballman2013-07-232-8/+3
| | | | llvm-svn: 186966
* Expand test/Driver/at_file.c test to check that PR16209 is fixed.Hans Wennborg2013-07-233-0/+3
| | | | | | It was fixed by r186603. llvm-svn: 186962
* Remove unused diagnostics.Benjamin Kramer2013-07-232-6/+0
| | | | llvm-svn: 186955
* Remove line number from test/Analysis/crash-trace.c.Jordan Rose2013-07-231-1/+1
| | | | | | ...and hopefully, finally, unbreak buildbots. llvm-svn: 186953
* Mark test/Analysis/crash-trace.c as requiring crash recovery.Jordan Rose2013-07-231-0/+1
| | | | | | This plus Rafael's fix at r186943 should keep all the buildbots happy. llvm-svn: 186950
* Convert another test to -###.Rafael Espindola2013-07-231-2/+2
| | | | llvm-svn: 186949
* Fixing the build bots from the previous commit.Aaron Ballman2013-07-233-3/+3
| | | | llvm-svn: 186947
* Add missing quotes for -###.Rafael Espindola2013-07-231-1/+1
| | | | | | Sorry about forgetting to include this in the previous patch. llvm-svn: 186946
* Use -### instead of -ccc-echo.Rafael Espindola2013-07-231-1/+1
| | | | | | | | This is still a fairly odd test. Clang wants to run gcc for assembling. At least with -### it only prints that instead of actually trying to run it with -ccc-echo. llvm-svn: 186945
* Replacing some manual diagnostic checks with an existing helper method. ↵Aaron Ballman2013-07-234-12/+14
| | | | | | Adding missing test cases for the diagnostics. llvm-svn: 186944
* Run %clang_cc1, it is the one that actually crashes.Rafael Espindola2013-07-231-1/+1
| | | | llvm-svn: 186943
* Removed a redundant diagnostic and replaced it with a more standard one. ↵Aaron Ballman2013-07-233-4/+3
| | | | | | Added a test case for the diagnostic. llvm-svn: 186942
* Consolidate several attribute argument diagnostics into a single, selectable ↵Aaron Ballman2013-07-234-66/+85
| | | | | | diagnostic. This makes the diagnostic more consistent. llvm-svn: 186940
* Correcting the NSObject and Overloadable attribute diagnostics so that the ↵Aaron Ballman2013-07-233-6/+5
| | | | | | count reported matches reality. llvm-svn: 186936
* C++1y literal suffix support:Richard Smith2013-07-237-16/+111
| | | | | | | * Allow ns, us, ms, s, min, h as numeric ud-suffixes * Allow s as string ud-suffix llvm-svn: 186933
* [analyzer] Enable pseudo-destructor expressions.Jordan Rose2013-07-232-1/+15
| | | | | | | | These are cases where a scalar type is "destructed", usually due to template instantiation (e.g. "obj.~T()", where 'T' is 'int'). This has no actual effect and the analyzer should just skip over it. llvm-svn: 186927
* [analyzer] Add test for crash tracing (r186639)Jordan Rose2013-07-231-0/+18
| | | | llvm-svn: 186926
* Revert "[analyzer] Add very limited support for temporary destructors"Jordan Rose2013-07-237-84/+4
| | | | | | | | | | | | The analyzer doesn't currently expect CFG blocks with terminators to be empty, but this can happen when generating conditional destructors for a complex logical expression, such as (a && (b || Temp{})). Moreover, the branch conditions for these expressions are not persisted in the state. Even for handling noreturn destructors this needs more work. This reverts r186498. llvm-svn: 186925
* Error on more illegal kernel argument types for OpenCLMatt Arsenault2013-07-236-24/+316
| | | | | | | | bool, half, pointers and structs / unions containing any of these are not allowed. Does not yet reject size_t and related integer types that are also disallowed. llvm-svn: 186908
* Make the nomathbuiltin.c test less demanding.Eli Bendersky2013-07-231-7/+1
| | | | | | This should hopefully unbreak the Windows bots at http://bb.pgr.jp llvm-svn: 186906
* Further simplify test case from r186894David Blaikie2013-07-231-15/+5
| | | | llvm-svn: 186905
* Integers which are too large should be an error.Eli Friedman2013-07-2312-35/+30
| | | | | | | | Switch some warnings over to errors which should never have been warnings in the first place. (Also, a minor fix to the preprocessor rules for integer literals while I'm here.) llvm-svn: 186903
* Simplify testcase.Adrian Prantl2013-07-231-18/+3
| | | | | | rdar://problem/14386148 llvm-svn: 186901
* Add a -fno-math-builtin option to the Clang -cc1Eli Bendersky2013-07-236-3/+44
| | | | llvm-svn: 186899
* Implement a better fix for r186894 by setting the appropriate type for ↵Adrian Prantl2013-07-231-2/+3
| | | | | | | | __byref_variable_layout. rdar://problem/14386148 llvm-svn: 186898
* ObjectiveC migration. Better handle migration to conformingFariborz Jahanian2013-07-223-4/+80
| | | | | | | protocols by ignoring cases where all protocol properties and methods are optional. llvm-svn: 186895
OpenPOWER on IntegriCloud