summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* [analyzer] Include bug column numbers in HTML output (in a comment).Jordan Rose2013-11-151-0/+4
| | | | | | | | | | This has no effect on user-visible output, but can be used by post-processing tools that work with the generated HTML, rather than using CmpRuns.py's interface to work with plists. Patch by György Orbán! llvm-svn: 194763
* Modern gcc is happy to constant evaluate __builtin_strlen in various casesRichard Smith2013-11-151-17/+42
| | | | | | | where we didn't. Extend our constant evaluation for __builtin_strlen to handle any constant array of chars, not just string literals, to match. llvm-svn: 194762
* R600: Add processor type for HawaiiTom Stellard2013-11-141-0/+1
| | | | llvm-svn: 194751
* Fix typoDavid Peixotto2013-11-141-1/+1
| | | | llvm-svn: 194744
* Pass -Wa,-I and -Xassembler -I args to integrated assemblerDavid Peixotto2013-11-141-0/+18
| | | | | | | This patch adds -I to the arguments that are passed to the integrated assembler from -Wa, and -Xassembler args. llvm-svn: 194743
* DR408: If a static data member of incomplete array type is declared in a classRichard Smith2013-11-141-0/+3
| | | | | | | | | | template, that member has a dependent type (even if we can see the definition of the member of the primary template), because the array size could change in a member specialization. Patch by Karthik Bhat! llvm-svn: 194740
* [AArch64] Add support for legacy AArch32 NEON scalar shift right by immediateChad Rosier2013-11-141-0/+11
| | | | | | and accumulate instructions. llvm-svn: 194732
* ObjectiveC migrator: This patch sets access propertyFariborz Jahanian2013-11-141-27/+29
| | | | | | attributes on 'readonly' properties. // rdar://15460787 llvm-svn: 194718
* [OpenCL] Make sure we put string literals in the constant address space.Joey Gouly2013-11-143-4/+16
| | | | llvm-svn: 194717
* [analyzer] Treat MSVC's _wassert as noreturn.Jordan Rose2013-11-141-0/+3
| | | | | | | | This makes sure the analyzer actually honors assert() in an MSVC project. Patch by Anders Montonen! llvm-svn: 194716
* [objcmt] Introduce "objcmt-white-list-dir-path=" option.Argyrios Kyrtzidis2013-11-143-4/+49
| | | | | | | This options accepts a path to a directory, collects the filenames of the files it contains, and the migrator will only modify files with the same filename. llvm-svn: 194710
* [objcmt] -objcmt-atomic-property & -objcmt-ns-nonatomic-iosonly are ↵Argyrios Kyrtzidis2013-11-141-3/+7
| | | | | | | | companion flags. Ignore them when determining if some transformation was enabled. llvm-svn: 194709
* Move classes into anonymous namespaces.Benjamin Kramer2013-11-141-0/+4
| | | | llvm-svn: 194706
* Revert r194663 and r194647.Ted Kremenek2013-11-141-12/+0
| | | | | | Per feedback from Jordan Rose I realized this wasn't the right way to go. llvm-svn: 194664
* Refine -Wunused-variable to only suppress warning for __bridge_transfer, not ↵Ted Kremenek2013-11-141-14/+4
| | | | | | | | | all bridge casts. Also refine test case to capture the intention of this suppression. Essentially some developers use __bridge_transfer as if it were a safe CFRelease. llvm-svn: 194663
* [AArch64 neon] support poly64 and relevant intrinsic functions.Kevin Qin2013-11-143-8/+14
| | | | llvm-svn: 194660
* Implement aarch64 neon instruction class misc.Kevin Qin2013-11-142-0/+283
| | | | llvm-svn: 194657
* Added warning on structures/unions that are empty or contain onlySerge Pavlov2013-11-143-32/+51
| | | | | | | | | | bit fields of zero size. Warnings are generated in C++ mode and if only such type is defined inside extern "C" block. The patch fixed PR5065. Differential Revision: http://llvm-reviews.chandlerc.com/D2151 llvm-svn: 194653
* Implement AArch64 NEON instruction set AdvSIMD (table).Jiangning Liu2013-11-141-2/+229
| | | | llvm-svn: 194649
* Suppress -Wunused-variable when initializer uses bridge casts for memory ↵Ted Kremenek2013-11-141-0/+22
| | | | | | | | management. Fixes <rdar://problem/15432770>. llvm-svn: 194647
* ObjectiveC ARC. objc_bridge attribute should be applied toFariborz Jahanian2013-11-141-4/+3
| | | | | | toll-free bridging cf types only. // rdar//15454846 wip. llvm-svn: 194640
* ObjectiveC ARC. Introduce a new attribute, 'objc_bridge'Fariborz Jahanian2013-11-131-0/+53
| | | | | | | that teaches the compiler about a subset of toll-free bridging semantics. This is wip. // rdar://15454846 llvm-svn: 194633
* [objcmt] If no objcmt options were specified, default to enable ↵Argyrios Kyrtzidis2013-11-131-1/+8
| | | | | | literals+subscripting. llvm-svn: 194629
* [objcmt] Transfer the objcmt flags from the driver to cc1 invocation andArgyrios Kyrtzidis2013-11-132-1/+15
| | | | | | instantiate ObjCMigrateASTConsumer with the specific options that were enabled. llvm-svn: 194628
* [objcmt] If the frontend option is frontend::MigrateSource then we don't ↵Argyrios Kyrtzidis2013-11-131-20/+22
| | | | | | | | need to create the arcmt wrappers. llvm-svn: 194627
* Don't use alias from derived dtor to base dtor at -O0.Rafael Espindola2013-11-131-0/+5
| | | | | | | | | | This patch disables aliasing (and rauw) of derived dtors to base dtors at -O0. This optimization can have a negative impact on the debug quality. This was a latent bug for some time with local classes, but got noticed when it was generalized and broke gdb's destrprint.exp. llvm-svn: 194618
* -fms-extensions: Recognize _alloca as an alias for the alloca builtinReid Kleckner2013-11-131-0/+1
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1989 llvm-svn: 194617
* Only provide MS builtins when -fms-extensions is onReid Kleckner2013-11-131-1/+4
| | | | | | | | | | | We already have builtins that are only available in GNU mode, so this mirrors that. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D2128 llvm-svn: 194615
* libclang does not depend directly on clangFormat; but clangIndex doesDmitri Gribenko2013-11-131-0/+1
| | | | llvm-svn: 194611
* Documentation parsing: move comment-to-XML conversion routines to libIndexDmitri Gribenko2013-11-133-0/+1215
| | | | llvm-svn: 194610
* No functional change. Renaming a variable in RecordLayoutBuilder and Warren Hunt2013-11-132-12/+15
| | | | | | | | improving comments to make documentation more accurate. Differential Revision:http://llvm-reviews.chandlerc.com/D2172 llvm-svn: 194609
* [AArch64] Tests for legacy AArch32 NEON scalar shift by immediate instructions.Chad Rosier2013-11-131-9/+9
| | | | | | | A number of non-overloaded intrinsics have been replaced by thier overloaded counterparts. llvm-svn: 194599
* Drop windows specific handling of equivalent destructors.Rafael Espindola2013-11-131-9/+0
| | | | | | | | | Now that the relevant tests use -mconstructor-aliases and the missing features have been implemented, we can just drop this. No functionality change. llvm-svn: 194595
* Adds ARM backend options: -mrestrict-it and -mno-restrict-itWeiming Zhao2013-11-131-0/+11
| | | | | | | To support the generation of IT block in Thumbv7 way or Thumbv8 way llvm-svn: 194593
* [objcmt] Use FileIDs directly instead of their hash value.Argyrios Kyrtzidis2013-11-131-15/+15
| | | | | | No functionality change. llvm-svn: 194590
* No need to use CGM.getCXXABI() from CXXABITimur Iskhodzhanov2013-11-131-4/+4
| | | | llvm-svn: 194584
* Correctly mark first token in the presence of UTF-8 BOM.Alexander Kornienko2013-11-131-3/+4
| | | | | | | | | | | | | | Summary: Fixes http://llvm.org/PR17753 Reviewers: klimek Reviewed By: klimek CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2159 llvm-svn: 194576
* Add -fprofile-sample-use to Clang's driver.Diego Novillo2013-11-133-0/+20
| | | | | | | | This adds a new option -fprofile-sample-use=filename to Clang. It tells the driver to schedule the SampleProfileLoader pass and passes on the name of the profile file to use. llvm-svn: 194567
* Warn on duplicate function specifierSerge Pavlov2013-11-132-17/+61
| | | | | | | | | This patch fixes PR8264. Duplicate qualifiers already are diagnozed, now the same diagnostics is issued for duplicate function specifiers. Differential Revision: http://llvm-reviews.chandlerc.com/D2025 llvm-svn: 194559
* PR10837: Warn if a null pointer constant is formed by a zero integer constantRichard Smith2013-11-131-2/+11
| | | | | | expression that is not a zero literal, in C. Patch by Ivan A. Kosarev! llvm-svn: 194540
* ObjectiveC migrator. Place use of NS_NONATOMIC_IOSONLYFariborz Jahanian2013-11-132-2/+9
| | | | | | | | on inferred property attribute under -objcmt-ns-nonatomic-iosonly option. // rdar://15442742 llvm-svn: 194532
* Avoid producing mismatched comdats.Rafael Espindola2013-11-121-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | The problem was that given template<typename T> struct foo { ~foo() {} }; template class foo<int>; We would produce a alias, creating a comdat with D0 and D1, since the symbols have to be weak. Another TU is not required to have a explicit template instantiation definition or an explict template instantiation declaration and for template<typename T> struct foo { ~foo() {} }; foo<int> a; we would produce a comdat with only one symbol in it. llvm-svn: 194520
* add intrinsics: __builtin_arm_{dmb,dsb} for ARMWeiming Zhao2013-11-121-0/+2
| | | | llvm-svn: 194513
* ObjectiveC. availability of Array/Dictionary subscriptingFariborz Jahanian2013-11-121-1/+4
| | | | | | | is further restricted in legacy runtime to deployment target of 10.7 and later. // rdar://15363492 llvm-svn: 194507
* ObjectiveC migrator. Another alternative toFariborz Jahanian2013-11-121-1/+4
| | | | | | | | "atomic" or "nonatomic" for properties is NS_NONATOMIC_IOSONLY. Use it if available. // rdar://15442742 llvm-svn: 194503
* Remove extra whitespace instead of breaking the line in comments when possible.Alexander Kornienko2013-11-123-2/+49
| | | | | | | | | | | | | | Summary: Solves the problem described in http://llvm.org/PR17756 Reviewers: klimek Reviewed By: klimek CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2131 llvm-svn: 194493
* Do not insert backslashes, when breaking line comments after preprocessor ↵Alexander Kornienko2013-11-121-8/+9
| | | | | | | | | | | | | | | | directives. Summary: This solves http://llvm.org/PR17536 Reviewers: klimek, djasper Reviewed By: klimek CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2142 llvm-svn: 194491
* ObjectiveC driver change. re-apply patch reverted inFariborz Jahanian2013-11-121-0/+7
| | | | | | r194450 with a modified test. // rdar://15363492 llvm-svn: 194489
* [mips][msa] Enable inlinse assembly for MSA.Daniel Sanders2013-11-121-2/+10
| | | | | | | | | | | | | | Like GCC, this re-uses the 'f' constraint and a new 'w' print-modifier: asm ("ldi.w %w0, 1", "=f"(result)); Unlike GCC, the 'w' print-modifer is not _required_ to produce the intended output. This is a consequence of differences in the internal handling of the registers in each compiler. To be source-compatible between the compilers, users must use the 'w' print-modifier. MSA registers (including control registers) are supported in clobber lists. llvm-svn: 194476
* XCore target requires preferred alignment.Robert Lytton2013-11-121-0/+4
| | | | | | | | The xcore llvm backend does not handle 8 byte alignment viz: "%BadAlignment = alloca i64, align 8" So getPreferredTypeAlign() must never overalign. llvm-svn: 194462
OpenPOWER on IntegriCloud