summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* The release_capability, release_shared_capability and ↵Aaron Ballman2014-03-211-0/+10
| | | | | | release_generic_capability functions are now functionally distinct for capability analysis. The unlock_function attribute maps directly to release_generic_capability. llvm-svn: 204469
* Simplify ↵Timur Iskhodzhanov2014-03-211-123/+124
| | | | | | | | test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance-vtordisps.cpp by forcing VFTableBuilder invocation with virtual function calls Previously the vftables were built at the end of the TU in a reverse-to-random order llvm-svn: 204465
* Simplify ↵Timur Iskhodzhanov2014-03-211-285/+284
| | | | | | | | test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance.cpp by forcing VFTableBuilder invocation with virtual function calls Previously the vftables were built at the end of the TU in a reverse-to-random order llvm-svn: 204464
* Simplify test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp by ↵Timur Iskhodzhanov2014-03-211-134/+136
| | | | | | | | forcing VFTableBuilder invocation with virtual function calls Previously the vftables were built at the end of the TU in a reverse-to-random order llvm-svn: 204455
* Add one more test for PR19172Timur Iskhodzhanov2014-03-211-0/+41
| | | | llvm-svn: 204453
* Kill deprecated -fbounds-checking flagAlexey Samsonov2014-03-212-14/+3
| | | | llvm-svn: 204436
* [-Wunreachable-code] add a specialized diagnostic for unreachable increment ↵Ted Kremenek2014-03-213-2/+23
| | | | | | expressions of loops. llvm-svn: 204430
* [OPENMP] parsing of clause 'safelen' (for directive 'omp simd')Alexey Bataev2014-03-213-4/+186
| | | | llvm-svn: 204428
* Serialize and deserialize mangling numbers.Richard Smith2014-03-211-0/+28
| | | | llvm-svn: 204423
* PR19215: When writing/reading a PCH that imported a module, store the locationRichard Smith2014-03-214-0/+14
| | | | | | | at which that PCH imported each visible submodule of the module. Such locations are needed when synthesizing macro directives resulting from the import. llvm-svn: 204417
* Fixed newlines.Alexander Kornienko2014-03-211-52/+52
| | | | llvm-svn: 204413
* PGO: Don't define instrumentation data available_externallyDuncan P. N. Exon Smith2014-03-201-0/+12
| | | | | | | | | | | | | | | Variables with available_externally linkage can be dropped at will. This causes link errors, since there are still references to the instrumentation! linkonce_odr is almost equivalent, so use that instead. As a drive-by fix (I don't have an Elf system, so I'm not sure how to write a testcase), use linkonce linkage for the instrumentation of extern_weak functions. <rdar://problem/15943240> llvm-svn: 204408
* When the exception specification for a function in an imported PCH or module isRichard Smith2014-03-201-9/+38
| | | | | | resolved, emit an update record. llvm-svn: 204403
* Consumed Analysis: IgnoreParens bugfix.DeLesley Hutchins2014-03-201-0/+33
| | | | llvm-svn: 204395
* Fix PR19172 - wrong this adjustment calculated for virtual destructor in a ↵Timur Iskhodzhanov2014-03-202-0/+67
| | | | | | | | class with complex inheritance Reviewed at http://llvm-reviews.chandlerc.com/D3128 llvm-svn: 204394
* PGO: Change runtime prefix from pgo to profileDuncan P. N. Exon Smith2014-03-206-45/+45
| | | | | | | | | | | These functions are in the profile runtime. PGO comes later. Unfortunately, there's only room for 16 characters in a Darwin section, so use __llvm_prf_ instead of __llvm_profile_ for section names. <rdar://problem/15943240> llvm-svn: 204390
* [-Wunreachable-code] Tweak isTrivialDoWhile() to handle implicit casts.Ted Kremenek2014-03-201-0/+8
| | | | llvm-svn: 204376
* Prevent lookup of subframework modules by name without parent frameworkBen Langmuir2014-03-201-0/+5
| | | | | | | | | | | | | We were 'allowing' the following import @import Sub; where Sub is a subframework of Foo and we had a -F path inside Foo.framework/Frameworks and no module map file for Sub. This would later hit assertion failures in debug builds. Now we should correctly diagnose this as a module not found error. llvm-svn: 204368
* Replacing the exclusive_lock_function, shared_lock_function and ↵Aaron Ballman2014-03-201-9/+2
| | | | | | | | unlock_function attributes with the acquire_capability and release_capability attributes. The old spellings will continue to work, but the underlying semantic attributes have been replaced. Downgraded the capability diagnostics from error to warning to match the desired behavior, and updated the existing test cases. llvm-svn: 204350
* Remove wchar_t* buffer from scanf format fix-it test.Jordan Rose2014-03-201-5/+0
| | | | | | | | | | | | Amends r204300 to not try to test fixing a wchar_t* to "%ls", which we don't do correctly anyway. In C mode, wchar_t is just a typedef for a normal primitive integer type, not a distinct type like it is in C++. To make this work correctly, we'll need to look for the wchar_t typedef, not just the builtin type. Should fix the buildbots. llvm-svn: 204349
* [msan] -fsanitize-memory-track-origins=[level] flag and docs.Evgeniy Stepanov2014-03-201-2/+21
| | | | | | | | | This change turns -fsanitize-memory-track-origins into -fsanitize-memory-track-origins=[level] flag (keeping the old one for compatibility). Possible levels are 0 (off), 1 (default) and 2 (incredibly detailed). See docs (part of this patch) for more info. llvm-svn: 204346
* Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting ↵NAKAMURA Takumi2014-03-201-2/+2
| | | | | | win32. llvm-svn: 204334
* Kill -faddress-sanitizer, -fthread-sanitizer and -fcatch-undefined-behavior ↵Alexey Samsonov2014-03-205-29/+12
| | | | | | | | | flags. These flags are deprecated since at least Clang 3.3. Users should instead use -fsanitize= with appropriate values. llvm-svn: 204330
* [-Wunreachable-code] Look through member accesses for 'static const bool' ↵Ted Kremenek2014-03-201-16/+35
| | | | | | configuration values. llvm-svn: 204315
* [-Wunreachable-code] constexpr functions can be used as configuration values.Ted Kremenek2014-03-201-1/+22
| | | | llvm-svn: 204308
* [-Wunreachable-code] Simplify and broad -Wunreachable-code-return, including ↵Ted Kremenek2014-03-201-0/+16
| | | | | | | | | | | | | | | | | nontrivial returns. The exception is return statements that include control-flow, which are clearly doing something "interesting". 99% of the cases I examined for -Wunreachable-code that fired on return statements were not interesting enough to warrant being in -Wunreachable-code by default. Thus the move to include them in -Wunreachable-code-return. This simplifies a bunch of logic, including removing the ad hoc logic to look for std::string literals. llvm-svn: 204307
* scanf format checking: include the buffer length in the fix-it for %s.Jordan Rose2014-03-201-2/+26
| | | | | | Patch by Zach Davis! llvm-svn: 204300
* Add a new spelling for module map files 'module.modulemap'Ben Langmuir2014-03-1917-0/+45
| | | | | | | | | | | | | | | This name, while more verbose, plays more nicely with tools that use file extensions to determine file types. The existing spelling 'module.map' will continue to work, but the new spelling will take precedence. In frameworks, this new filename will only go in a new 'Modules' sub-directory. Similarly, add a module.private.modulemap corresponding to module_private.map. llvm-svn: 204261
* Comment parsing: fix a crash when dumping comment ast for a function templateDmitri Gribenko2014-03-191-0/+8
| | | | | | | | with variadic parameters Patch by Joe Ranieri. llvm-svn: 204236
* Comment parsing: recognize \param ... on function templates with variadicDmitri Gribenko2014-03-191-0/+20
| | | | | | | | parameters Patch by Joe Ranieri. llvm-svn: 204235
* Use the expansion location of the file name when finding the module.Manuel Klimek2014-03-194-0/+33
| | | | | | | | The spelling location of stringified strings is not a file location. Optimally, we'll want to solve the problem (as the FIXME states) by handing in the right FileEntry of the #include location. llvm-svn: 204220
* Tests for DR450-475.Richard Smith2014-03-191-0/+230
| | | | llvm-svn: 204217
* Fix a typo in r204164 that made *all* keywords available in OpenCL mode.Richard Smith2014-03-181-0/+8
| | | | llvm-svn: 204196
* CodeGen: Include a function hash in instrumentation based profilingJustin Bogner2014-03-189-41/+103
| | | | | | | | | The hash itself is still the number of counters, which isn't all that useful, but this separates the API changes from the actual implementation of the hash and will make it easier to transition to the ProfileData library once it's implemented. llvm-svn: 204186
* Creating a printing policy for "half":Yunzhong Gao2014-03-182-2/+2
| | | | | | | | | | | | Since "half" is an OpenCL keyword and clang accepts __fp16 as an extension for other languages, error messages and metadata (and hence debug info) should refer to the half-precision floating point as "__fp16" instead of "half" when compiling for non-OpenCL languages. This patch creates a new printing policy for half in a similar manner to what is done for bool and wchar_t. Differential Revision: http://llvm-reviews.chandlerc.com/D2952 llvm-svn: 204164
* Added a __has_feature() for 'is_constructible'Marshall Clow2014-03-181-0/+5
| | | | llvm-svn: 204153
* modify declare-use.S to work when full toolchain not presentMatthew Curtis2014-03-181-1/+1
| | | | | | | | Test doesn't actually require production of an object file and for some targets (e.g. hexagon) an assembler is not always available when lit tests are run. llvm-svn: 204144
* clang/test/Driver/sanitizer-ld.c: Tweak to accept dos path.NAKAMURA Takumi2014-03-181-1/+1
| | | | llvm-svn: 204138
* Add support for sanitizers arguments on FreeBSDViktor Kutuzov2014-03-181-0/+23
| | | | llvm-svn: 204129
* clang/test/Modules/cxx-templates.cpp: Tweak for dos path.NAKAMURA Takumi2014-03-181-1/+1
| | | | llvm-svn: 204116
* Debug info: Update testcases to new DIBuilder behaviour. Variables nowAdrian Prantl2014-03-183-8/+8
| | | | | | store DIRefs to their types for improved type uniquing. llvm-svn: 204105
* AST dumper: if we have multiple implicit instantiations of the same classRichard Smith2014-03-181-0/+11
| | | | | | | template specialization (from different modules), dump them all, so that every declaration is dumped somewhere. llvm-svn: 204100
* Remove 'REQUIRES: LP64' from these tests and use a more targeted fix.Richard Smith2014-03-182-4/+5
| | | | llvm-svn: 204096
* Objective-C. No need to issue deprecated warning if deprecated method Fariborz Jahanian2014-03-181-2/+14
| | | | | | | | in class extension is being implemented in primary class implementation (no overriding is involved). // rdar://16249335 llvm-svn: 204093
* Don't fold together the name lookup entries for two declarations if they areRichard Smith2014-03-172-11/+23
| | | | | | declared in different namespaces in the same inline namespace set. llvm-svn: 204082
* Objective-C. Consider blocks for designated initializerFariborz Jahanian2014-03-171-3/+26
| | | | | | | | warnings (warning or lack there of) as well since blocks are another pattern for envoking other designated initializers. // rdar://16323233 llvm-svn: 204081
* PGO: Statically generate data structuresDuncan P. N. Exon Smith2014-03-177-20/+80
| | | | | | | | | | | | | | | | | | | In instrumentation-based profiling, we need a set of data structures to represent the counters. Previously, these were built up during static initialization. Now, they're shoved into a specially-named section so that they show up as an array. As a consequence of the reorganizing symbols, instrumentation data structures for linkonce functions are now correctly coalesced. This is the first step in a larger project to minimize runtime overhead and dependencies in instrumentation-based profilng. The larger picture includes removing all initialization overhead and making the dependency on libc optional. <rdar://problem/15943240> llvm-svn: 204080
* Objective-C. Do not warn when an instance method andFariborz Jahanian2014-03-171-0/+13
| | | | | | | | class method with the same selctor but different argument types having one of them in class extension. // rdar://16312105 llvm-svn: 204065
* Remove unused variable from test.Richard Smith2014-03-171-1/+1
| | | | llvm-svn: 204051
* clang/test/CXX/drs: Add "REQUIRES:LP64" to a couple of tests in r204033. ↵NAKAMURA Takumi2014-03-172-0/+2
| | | | | | [PR8833] llvm-svn: 204038
OpenPOWER on IntegriCloud