summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [mips] Remove XFAIL.Akira Hatanaka2013-10-081-2/+0
| | | | | | | Triple x86_64 has been added to the command line, so this test doesn't fail on mips anymore. llvm-svn: 192219
* Remove transient code I did not mean to check in.Ted Kremenek2013-10-081-12/+0
| | | | llvm-svn: 192211
* Fixed messages in tests.Serge Pavlov2013-10-083-6/+6
| | | | llvm-svn: 192208
* Fixed grammar. Thanks to Jordan Rose.Serge Pavlov2013-10-082-3/+3
| | | | llvm-svn: 192204
* Convert anachronistic use of 'void *' to 'DeclContext *' in Scope that was a ↵Ted Kremenek2013-10-0810-41/+44
| | | | | | holdover from the long-dead Action interface. llvm-svn: 192203
* Fix an edge case in the template differ with default arguments.Benjamin Kramer2013-10-082-6/+27
| | | | | | | | In the test case one type is coming from a typedef with no default arg, the other has the default arg. Taking the default arg from the typedef crashes, so always use the real template paramter declaration. PR17510. llvm-svn: 192202
* clang-cl: ignore the /sdl[-] flagHans Wennborg2013-10-082-0/+3
| | | | | | | In cl.exe, this flag turns some warnings into errors and adds some codegen security checks. I don't think we intend to support this. llvm-svn: 192201
* Add fixits suggesting parenthesis around type name in expressions like sizeof.Serge Pavlov2013-10-085-0/+58
| | | | | | This fixes PR16992 - Fixit missing when "sizeof type" found. llvm-svn: 192200
* clang-format: Improve indentation when deriving from templated classes.Daniel Jasper2013-10-083-3/+9
| | | | | | | | | | | | | | | | | Before: struct aaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa< // aaaaaaaaaaaaaaaa> {}; struct aaaaaaaaaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa< aaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa> {}; After: struct aaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa< // aaaaaaaaaaaaaaaa> {}; struct aaaaaaaaaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa<aaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa> {}; llvm-svn: 192187
* clang-format: Don't exit with failure on empty files.Daniel Jasper2013-10-082-2/+3
| | | | | | | | | | Also let clang-format-diff.py detect errors based on clang-format's return code. Otherwise messages like "Can't find usable .clang-format, falling back to LLVM style" can make it fail, which might be undesired. Patch by Alp Toker. Thank you! llvm-svn: 192184
* Make InstantiatingTemplate depth checks clearerAlp Toker2013-10-086-25/+24
| | | | | | | | | | The bool conversion operator on InstantiatingTemplate never added value and only served to obfuscate the template instantiation routines. This replaces the conversion and its callers with an explicit isInvalid() function to make it clear what's going on at a glance. llvm-svn: 192177
* clang-format: Improve constructor initializer linewrapping.Daniel Jasper2013-10-083-12/+35
| | | | | | | | | Specifically make ConstructorInitializerAllOnOneLineOrOnePerLine work nicely with BreakConstructorInitializersBeforeComma. This fixes llvm.org/PR17395. llvm-svn: 192168
* Fix linkage calculation of auto member functions returning lambdasFaisal Vali2013-10-082-5/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described by Richard in https://groups.google.com/a/isocpp.org/d/msg/std-discussion/S1kmj0wF5-g/fb6agEYoL2IJ we should allow: template<typename S> struct A { template<typename T> static auto default_lambda() { return [](const T&) { return 42; }; } template<class U = decltype(default_lambda<S>())> U func(U u = default_lambda<S>()) { return u; } }; int run2 = A<double>{}.func()(3.14); int run3 = A<char>{}.func()('a'); This patch allows the code using the same trickery that was used to allow the code in non-member functions at namespace scope. Please see http://llvm-reviews.chandlerc.com/D1844 for richard's approval. llvm-svn: 192166
* [ms-cxxabi] Fix the calling convention for operator new in recordsReid Kleckner2013-10-0810-32/+100
| | | | | | | | | | | | | | | | | | Summary: Operator new, new[], delete, and delete[] are all implicitly static when declared inside a record. CXXMethodDecl already knows this, but we need to account for that before we pick the calling convention for the function type. Fixes PR17371. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1761 llvm-svn: 192150
* Sema: Only merge typedef attributes if the previous decl is a typedefJustin Bogner2013-10-083-5/+27
| | | | | | | | | | | | In r186373, we started merging attributes on typedefs, but this causes us to try to merge attributes even if the previous declaration was not a typedef. Only merge the attributes if the previous decl was also a typedef. Fixes rdar://problem/15044218 llvm-svn: 192146
* TBAA: use the same format for scalar TBAA and struct-path aware TBAA.Manman Ren2013-10-089-32/+59
| | | | | | | | | | | | | | | | An updated version of r191586 with bug fix. Struct-path aware TBAA generates tags to specify the access path, while scalar TBAA only generates tags to scalar types. We should not generate a TBAA tag with null being the first field. When a TBAA type node is null, the tag should be null too. Make sure we don't decorate an instruction with a null TBAA tag. Added a testing case for the bug reported by Richard with -relaxed-aliasing and -fsanitizer=thread. llvm-svn: 192145
* Split test to test -Wshadow with emmintrin.h more portable.Ted Kremenek2013-10-082-10/+11
| | | | llvm-svn: 192144
* Suppress useless -Wshadow warning when using _mm* macros from emmintrin.hTed Kremenek2013-10-072-0/+22
| | | | | | | | | | Fixes <rdar://problem/10679282>. I'm not completely satisfied with this patch. Sprinkling "diagnostic ignored" _Pragmas throughout this file is gross, but I couldn't suppress it for the entire file. llvm-svn: 192143
* clang-cl: Accept and mostly ignore /vm*, /GF, /GF-, /Zm, and /bigobjReid Kleckner2013-10-071-1/+11
| | | | | | Patch by David Ziman! llvm-svn: 192141
* Add a triple to unbreak buildbots where size_t is not 'unsigned long'.Richard Smith2013-10-072-2/+2
| | | | llvm-svn: 192140
* Remove -ast-dump-xml.Richard Smith2013-10-0711-1106/+0
| | | | llvm-svn: 192131
* ObjectiveC migrator: A typical implementation ofFariborz Jahanian2013-10-072-2/+1
| | | | | | | | 'default' methods in Foundation does not infer 'instancetype' for methods' result type. // rdar://15145218 llvm-svn: 192129
* Add support for WG21 N3599 (literal operator template for strings) as a GNURichard Smith2013-10-0710-53/+196
| | | | | | | | | extension. The GCC folks have decided to support this even though the standard committee have not yet approved this feature. Patch by Hristo Venev! llvm-svn: 192128
* ObjectiveC modern rewriter. Rewrite typedefsFariborz Jahanian2013-10-072-0/+35
| | | | | | | declared locally in ObjectiveC containers. // rdar://15143875 llvm-svn: 192127
* Fix objectsize tests after r192117Matt Arsenault2013-10-075-8/+11
| | | | llvm-svn: 192120
* ObjectiveC: Warn when 'readonly' property has explicitFariborz Jahanian2013-10-074-126/+47
| | | | | | | ownership attribute (such as 'copy', 'assign' etc.) // rdar://15131088 llvm-svn: 192115
* [analyzer] ArrayRef-ize BugReporter::EmitBasicReport.Jordan Rose2013-10-079-48/+24
| | | | | | No functionality change. llvm-svn: 192114
* [analyzer] RetainCountChecker: add support for CFAutorelease.Jordan Rose2013-10-073-564/+1489
| | | | | | <rdar://problems/13710586&13710643> llvm-svn: 192113
* [AArch64] Add support for NEON scalar arithmetic instructions:Chad Rosier2013-10-073-0/+104
| | | | | | SQDMULH, SQRDMULH, FMULX, FRECPS, and FRSQRTS. llvm-svn: 192112
* [libclang] Add some tests by Loïc Jaquemet that I forgot to add earlier.Argyrios Kyrtzidis2013-10-072-0/+50
| | | | llvm-svn: 192108
* Sema::tryCaptureVariable(): Prune three unused variables, HasBlocksAttr, ↵NAKAMURA Takumi2013-10-071-4/+0
| | | | | | IsBlock, and IsLambda. [-Wunused-variable] llvm-svn: 192095
* Fix incorrect detection of class definitions with alignas specification.Manuel Klimek2013-10-072-1/+3
| | | | llvm-svn: 192094
* When merging class definitions across modules in C++, merge together fields.Richard Smith2013-10-079-5/+139
| | | | | | | | | This change doesn't go all the way to making fields redeclarable; instead, it makes them 'mergeable', which means we can find the canonical declaration, but not much else (and for a declaration that's not from a module, the canonical declaration is always that declaration). llvm-svn: 192092
* Driver: Use the canonical command line arguments.David Majnemer2013-10-071-1/+10
| | | | | | | | | | | | | | | Summary: Use the arguments given to the OS at process creation-time instead of the arguments passed into main() by the C runtime environment. The ones that main() received may not be suitable (e.g. not Unicode). Depends on D1834 CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1835 llvm-svn: 192091
* Refactor tryCaptureVar using ExtractMethod. No functionality change.Faisal Vali2013-10-071-301/+394
| | | | | | | | | | In chicago, Doug had requested that I go ahead and commit the refactor as a separate change, if all the tests passed. Lets hope the buildbots stay quiet. Thanks! llvm-svn: 192087
* Fix PR17382 - properly group virtual method overloads in the vftableTimur Iskhodzhanov2013-10-062-6/+139
| | | | llvm-svn: 192067
* clang-format: Remove empty lines after visibility modifiers.Daniel Jasper2013-10-062-6/+22
| | | | | | | | | | | | | | | | | Formatting: class C { public: f(); }; Now leads to: class C { public: f(); }; llvm-svn: 192062
* remove a dead assignment. The variables are set just right after. Found by ↵Sylvestre Ledru2013-10-061-1/+1
| | | | | | scan-build http://buildd-clang.debian.net/scan-build/ llvm-svn: 192061
* Pass CGCXXABIs around directly.Mark Lacey2013-10-062-26/+33
| | | | | | | | | | In functions that only need to use the CGCXXABI member of a CodeGenTypes class, pass that reference around directly rather than a reference to a CodeGenTypes class. This makes the actual dependence on CGCXXABI clear at the call sites. llvm-svn: 192052
* Switching the CallableWhen attribute over to using the string literal helper ↵Aaron Ballman2013-10-051-17/+11
| | | | | | function instead of custom logic. llvm-svn: 192050
* Add support for -mcx16, and predefine __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 whenNick Lewycky2013-10-053-2/+30
| | | | | | it is enabled. Also enable it on the same architectures that GCC does. llvm-svn: 192045
* Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t.Aaron Ballman2013-10-051-1/+1
| | | | llvm-svn: 192043
* Use logical/arithmetic operations instead of builtins in tbmintrin.h. This ↵Craig Topper2013-10-053-103/+93
| | | | | | way we can remove the intrinsic support from the backend. llvm-svn: 192036
* Remove unused param from Linux::computeSysRoot().Simon Atanasyan2013-10-052-4/+4
| | | | llvm-svn: 192034
* Sema: Cleanup redundant variable NumArgsToCheckBenjamin Kramer2013-10-051-4/+1
| | | | | | Patch by Daniel Marjamäki! llvm-svn: 192030
* Implement aarch64 neon instruction set AdvSIMD (Across).Jiangning Liu2013-10-054-115/+440
| | | | llvm-svn: 192029
* Remove unused Sema::DelayedDestructorExceptionSpecsAlp Toker2013-10-051-5/+0
| | | | | | This was a leftover from r160847. llvm-svn: 192027
* Debug Info: update testing cases when the derived-from field of aManman Ren2013-10-055-15/+16
| | | | | | | | DW_TAG_pointer_type is updated to use DITypeRef. Paired commit with r192018. llvm-svn: 192019
* Consumed Analysis: Change callable_when so that it can take a list of statesDeLesley Hutchins2013-10-0410-382/+488
| | | | | | | | that a function can be called in. This reduced the total number of annotations needed and makes writing more complicated behaviour less burdensome. Patch by chriswails@gmail.com. llvm-svn: 191983
* ObjectiveC. Allow readonly properties without an explicit ownershipFariborz Jahanian2013-10-043-25/+55
| | | | | | | | (assign/unsafe_unretained/weak/retain/strong/copy) in super class to be overridden by a property with any explicit ownership in the subclass. // rdar://15014468 llvm-svn: 191971
OpenPOWER on IntegriCloud