summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Issue fixits replacing invalid character literals with the equivalent \xNNNick Lewycky2013-08-211-0/+11
| | | | | | escape code. llvm-svn: 188863
* If we find an error in the range expression in a range-based for loop, and theRichard Smith2013-08-212-3/+12
| | | | | | | loop variable has a type containing 'auto', set the declaration to be invalid (because we couldn't deduce its type) to prevent follow-on errors. llvm-svn: 188853
* Remove Extension warning for GNU local labels.Eli Friedman2013-08-201-18/+2
| | | | | | | | | We generally don't warn about extensions involving keywords reserved for the implementation, so we shouldn't warn here either: the standard doesn't require it, and it doesn't provide useful information to the user. llvm-svn: 188840
* Add more specific flags for misc GNU extensions.Eli Friedman2013-08-201-0/+98
| | | | | | | | | | | This adds the following as subgroups of -Wgnu: -Wgnu-alignof-expression, -Wgnu-case-range, -Wgnu-complex-integer, -Wgnu-conditional-omitted-operand, -Wgnu-empty-initializer, -Wgnu-label-as-value, -Wgnu-local-label, and -Wgnu-statement-expression, Patch by Peter Lewis. llvm-svn: 188839
* ObjectiveC migrator: make sure audited pragams areFariborz Jahanian2013-08-202-8/+2
| | | | | | dumped for last declarations in the current TU. wip. llvm-svn: 188838
* Test case for PR16933/r188707.David Blaikie2013-08-201-0/+11
| | | | llvm-svn: 188836
* ObjectiveC migrator: More tweaking of heuristicsFariborz Jahanian2013-08-201-12/+0
| | | | | | | for an audited cf function to not include those which are annotated by user. llvm-svn: 188823
* During typo correction, check for an exact match in an unimported module. If weRichard Smith2013-08-206-20/+44
| | | | | | find one, then report the error as a missing import instead of as a typo. llvm-svn: 188821
* Centralize the logic for handling -m* options and fix pr16943.Rafael Espindola2013-08-202-3/+14
| | | | | | | | | This moves the logic for handling -mfoo -mno-foo from the driver to -cc1. It also changes -cc1 to apply the options in order, fixing pr16943. The handling of -mno-mmx -msse is now an explicit special case. llvm-svn: 188817
* ObjectiveC migrator: More tweaking of heuristicsFariborz Jahanian2013-08-202-1/+121
| | | | | | | for an audited cf function and addition of a test case. llvm-svn: 188816
* ARM: add test for last commitTim Northover2013-08-201-0/+4
| | | | | | | | This time I managed to forget the test. Patch still by Stephen Kelly. llvm-svn: 188797
* clang/test/Driver/cl-options.c: Remove the feature "clang-driver". It has ↵NAKAMURA Takumi2013-08-201-2/+0
| | | | | | been working since r188331. llvm-svn: 188790
* clang/test/Driver: Remove the feature "clang-driver" since gcc-as has not ↵NAKAMURA Takumi2013-08-203-8/+0
| | | | | | been used with -integrated-as since r177360. llvm-svn: 188789
* clang/test/Driver: Remove the feature "clang-driver" in three tests since ↵NAKAMURA Takumi2013-08-203-4/+0
| | | | | | they might work as expected since their first commit. llvm-svn: 188788
* [mips][msa] Added fexdo, fexup[lr] builtinsDaniel Sanders2013-08-201-0/+9
| | | | llvm-svn: 188784
* Rename __AVX512__ to __AVX512F__Craig Topper2013-08-201-2/+2
| | | | llvm-svn: 188764
* Add AVX-512 feature flag and knl cpu to clang.Craig Topper2013-08-201-0/+64
| | | | llvm-svn: 188758
* Revert r188756 because some other changes snuck in with it.Craig Topper2013-08-201-64/+0
| | | | llvm-svn: 188757
* Add AVX-512 feature flag and knl cpu to clang.Craig Topper2013-08-201-0/+64
| | | | llvm-svn: 188756
* Revert "Revert "Revert "Revert "DebugInfo: Omit debug info for dynamic ↵David Blaikie2013-08-202-9/+75
| | | | | | | | | | | | | | classes in TUs that do not have the vtable for that class"""" This reverts commit r188687 (reverts r188642 (reverts 188600 (reverts 188576))). With added test coverage & fix for -gline-tables-only. Thanks Michael Gottesman for reverting this patch when it demonstrated problems & providing a reproduction/details to help me track this down. llvm-svn: 188739
* Fix name lookup with dependent using decls.Eli Friedman2013-08-201-0/+24
| | | | | | | | | | We previously mishandled UnresolvedUsingValueDecls in NamedDecl::declarationReplaces, which caused us to forget decls when there are multiple dependent using decls for the same name. Fixes PR16936. llvm-svn: 188737
* clang-cl: Ignore the /wd n flag for disabling a warningReid Kleckner2013-08-191-1/+1
| | | | | | | | Clang doesn't have a table mapping cl.exe to clang warnings. While some warnings like -Wsign-compare exist in both compilers, the majority do not correspond and should usually be ignored. llvm-svn: 188732
* clang-cl: Add /MP[n] to the list of unsupported and ignored flagsReid Kleckner2013-08-191-1/+1
| | | | | | | This flag tells cl.exe to use up to n processes to compile the provided source files. I have no plans to implement this in clang. llvm-svn: 188729
* Handle init lists and _Atomic fields.Eli Friedman2013-08-191-0/+6
| | | | | | Fixes PR16931. llvm-svn: 188718
* PR16727: don't try to evaluate a potentially value-dependent expression whenRichard Smith2013-08-191-0/+8
| | | | | | checking for missing parens in &&/|| expressions. llvm-svn: 188716
* Revert "Revert "Revert "DebugInfo: Omit debug info for dynamic classes in ↵Michael Gottesman2013-08-191-67/+9
| | | | | | | | | | | | | TUs that do not have the vtable for that class""" This reverts commit r188642. This change is causing LTO builds to cause our 16 GB machines to swap and OOM all weekend. I am going to work with Dave Blaikie to resolve the issue. Sorry Dave =(. llvm-svn: 188687
* Simplify assert-neutral matching in test case.David Blaikie2013-08-191-1/+1
| | | | | | | Originally committed in r188651, improved/fixed to be assert-neutral by Takumi in r188661. llvm-svn: 188686
* clang-cl: Expose the -Xclang optionHans Wennborg2013-08-191-0/+6
| | | | llvm-svn: 188685
* [analyzer] Add a triple to test/Analysis/cfg.cppJordan Rose2013-08-191-1/+1
| | | | llvm-svn: 188683
* [analyzer] Don't run unreachable code checker on inlined functions.Jordan Rose2013-08-191-0/+19
| | | | | | | | | This is still an alpha checker, but we use it in certain tests to make sure something is not being executed. This should fix the buildbots. llvm-svn: 188682
* [analyzer] Assume that strings are no longer than SIZE_MAX/4.Jordan Rose2013-08-192-2/+36
| | | | | | | | | This keeps the analyzer from making silly assumptions, like thinking strlen(foo)+1 could wrap around to 0. This fixes PR16558. Patch by Karthik Bhat! llvm-svn: 188680
* Omit arguments of __builtin_object_size from the CFG.Jordan Rose2013-08-192-1/+34
| | | | | | | | | | | | | | | | | This builtin does not actually evaluate its arguments for side effects, so we shouldn't include them in the CFG. In the analyzer, rely on the constant expression evaluator to get the proper semantics, at least for now. (In the future, we could get ambitious and try to provide path- sensitive size values.) In theory, this does pose a problem for liveness analysis: a variable can be used within the __builtin_object_size argument expression but not show up as live. However, it is very unlikely that such a value would be used to compute the object size and not used to access the object in some way. <rdar://problem/14760817> llvm-svn: 188679
* Re-apply r188666Alexey Samsonov2013-08-191-5/+13
| | | | llvm-svn: 188675
* clang/Driver: [PR12920] Don't forward any -W arguments to gcc-as and gcc-ld.NAKAMURA Takumi2013-08-191-3/+29
| | | | | | | | AFAIK, there are no -W options for gcc-as and gcc-ld. It caused failure to build clang with gcc-4.7 on cygwin. FIXME: Could we recategorize Options for gcc-as and gcc-ld? llvm-svn: 188668
* Revert r188666: it breaks the buildbotsAlexey Samsonov2013-08-191-13/+5
| | | | llvm-svn: 188667
* Fix PR16768: properly report malformed sanitizer blacklist file contentsAlexey Samsonov2013-08-191-5/+13
| | | | llvm-svn: 188666
* XCore target: Add target specific EmitVAArgRobert Lytton2013-08-191-8/+72
| | | | | | This is so aggregates can be passed as var args too. llvm-svn: 188664
* XCore target: correct test layoutRobert Lytton2013-08-192-18/+24
| | | | llvm-svn: 188663
* Explicitly specify triple in driver test from r188660Alexey Samsonov2013-08-191-1/+1
| | | | llvm-svn: 188662
* clang/test/CodeGenObjC/2010-02-09-DbgSelf.m: Tweak for -Asserts in r188651.NAKAMURA Takumi2013-08-191-1/+1
| | | | llvm-svn: 188661
* Move SanitizerArgs to the clang DriverAlexey Samsonov2013-08-192-0/+7
| | | | | | | | | | | | | | | | Summary: This change turns SanitizerArgs into high-level options stored in the Driver, which are parsed lazily. This fixes an issue of multiple copies of the same diagnostic message produced by sanitizer arguments parser. Reviewers: rsmith Reviewed By: rsmith CC: chandlerc, eugenis, cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1341 llvm-svn: 188660
* Comment parsing tests: move tests where they belongDmitri Gribenko2013-08-192-65/+52
| | | | | | | | | | | Move C++-specific tests that were checking if we attach a base class comment to a derived class to an existing test comment-to-html-xml-conversion.cpp. Note that the original testing approach was not actually testing the class--comment relationship. It only checked that we attached the comment *somewhere*. The rest of subclass-comment.mm should be also moved elsewhere. llvm-svn: 188658
* Comment parsing tests: move tests where they belongDmitri Gribenko2013-08-192-28/+78
| | | | | | | | | | | comment-misc-tags.m is mostly about miscellaneous Doxygen tags. Move out tests that check if the comment is attached to an ObjC decl. Because the exitsting test for this is in C++ (annotate-comments.cpp), create a new test -- annotate-comments-objc.m. The rest of comment-misc-tags.m should be also moved elsewhere. llvm-svn: 188657
* DebugInfo: Do not include line/file info for artificial parameters & ↵David Blaikie2013-08-193-9/+7
| | | | | | parameters of artificial functions llvm-svn: 188651
* Revert "Revert "DebugInfo: Omit debug info for dynamic classes in TUs that ↵David Blaikie2013-08-181-9/+67
| | | | | | | | | | | | do not have the vtable for that class"" This reverts commit r188600. r188640/r188639 fixed the root cause of the crash-on-valid that r188600 originally introduced. This now appears to bootstrap debug clang successfully to the best of my testing. llvm-svn: 188642
* DebugInfo: Avoid duplicating types that may be created during the process of ↵David Blaikie2013-08-181-0/+28
| | | | | | | | | | | | creating their context A partner to r188639, this is a somewhat heavy-handed fix to the general issue, since even after that prior change the issue does still unavoidably arise with template parameters (see test case). There are other ways we could consider addressing this (see FIXME). llvm-svn: 188640
* DebugInfo: Don't emit vbase 'containing types' for context chain limited typesDavid Blaikie2013-08-181-2/+17
| | | | | | | | | Possible minor reduction in debug info & avoid some cases where creating a context chain could lead to the type the context chain is being created for, being created. (this is still possible with template parameters - tests/fixes/improvements to follow) llvm-svn: 188639
* DebugInfo: don't require full definitions for friend classesDavid Blaikie2013-08-181-5/+11
| | | | | | | | | | Fixes a crash-on-valid introduced by r188486 (which should've occurred earlier but for a blatant bug where calling createFwdDecl from the requireCompleteType callback was useless under -flimit-debug-info and we were just getting lucky with other later callbacks requiring the type anyway). llvm-svn: 188622
* PR16927: Don't assert (or, previously, skip) static data members of ↵David Blaikie2013-08-171-1/+5
| | | | | | enumeration type llvm-svn: 188612
* Fix the name and the type of the argument for intriniscJuergen Ributzka2013-08-171-2/+2
| | | | | | | | _mm256_broadcastsi128_si256 to align with the Intel documentation. This fixes bug PR 16581 and rdar:14747994. llvm-svn: 188609
OpenPOWER on IntegriCloud