summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [OPENMP] parsing 'linear' clause (for directive 'omp simd')Alexander Musman2014-04-2220-20/+693
| | | | | | Differential Revision: http://reviews.llvm.org/D3272 llvm-svn: 206891
* ARM64: update NEON test to improved backend codegenTim Northover2014-04-221-2/+2
| | | | llvm-svn: 206890
* Comment parsing: close a hole in CDATA escaping in XML outputDmitri Gribenko2014-04-222-3/+45
| | | | llvm-svn: 206886
* Comment parsing: in the generated XML file, mark HTML that is safe to passDmitri Gribenko2014-04-2210-28/+230
| | | | | | | | | | | through to the output even if the input comment comes from an untrusted source Attribute filtering is currently based on a blacklist, which right now includes all event handler attributes (they contain JavaScipt code). It should be switched to a whitelist, but going over all of the HTML5 spec requires a significant amount of time. llvm-svn: 206882
* DiagnosticsEngine::Report(): Fix a warning. [-Wdocumentation]NAKAMURA Takumi2014-04-221-1/+1
| | | | llvm-svn: 206871
* Update clang/test/PCH/single-token-macro.c corresponding to r206791.NAKAMURA Takumi2014-04-221-0/+5
| | | | | | __stdcall is defined as __attribute__((__stdcall__)) for targeting mingw32. llvm-svn: 206870
* [Modules] Fix potential ODR violations by sinking the DEBUG_TYPEChandler Carruth2014-04-2214-28/+28
| | | | | | | | | | definition below all of the header #include lines, clang edition. If you want more details about this, you can see some of the commits to Debug.h in LLVM recently. This is just the clang section of a cleanup I've done for all uses of DEBUG_TYPE in LLVM. llvm-svn: 206849
* Move the C++11 ExtWarn for converting a string literal to 'char*' out ofRichard Smith2014-04-223-6/+27
| | | | | | | | | -Wc++11-compat-deprecated-writable-strings. It's neither a C++11 compatibility warning nor a deprecated feature, it's just ill-formed. In passing, add that warning to -Wdeprecated, where it belongs. llvm-svn: 206833
* Move the warning of implicit cast of a floating point to an integer out ofRichard Trieu2014-04-223-1/+41
| | | | | | -Wconversion and into it's own group, -Wfloating-point-conversion. llvm-svn: 206832
* Thread safety analysis: misc updates to SExpr handling. Fix to minimal SSA,DeLesley Hutchins2014-04-214-60/+131
| | | | | | function parameters, and compound assignment. llvm-svn: 206827
* Allow adding a value to a flag in diagnostics.Diego Novillo2014-04-214-5/+32
| | | | | | | | | | | | | | | | | Summary: This allows callers of Diags.Report() to append a value to the name of the flag associated with the diagnostic. This is useful in cases like the -Rpass flag, where we want the diagnostic to show the name of the pass that matched the pattern. Instead of showing "... [-Rpass]", this allows us to show "... [-Rpass=passname]". Reviewers: rsmith CC: cfe-commits Differential Revision: http://reviews.llvm.org/D3441 llvm-svn: 206826
* [Modules] Update Clang's two files that use DEBUG(...) without definingChandler Carruth2014-04-212-0/+4
| | | | | | DEBUG_TYPE to do so. LLVM's Debug.h requires this as of r206822. llvm-svn: 206823
* [Modules] Remove the only use of the DEBUG(...) macro in the compilerChandler Carruth2014-04-211-1/+0
| | | | | | | | parts of Clang. I don't really have any opinion about whether using that macro is good or bad, but its odd that this is the only one, and Eric seemed happy with just nuking it for now. llvm-svn: 206806
* Try to fix bad Twine usage in r206791 with std::stringReid Kleckner2014-04-211-1/+3
| | | | | | | I'm pretty sure I was referencing destroyed temporaries here. I'm open to suggestions on how to write this better. llvm-svn: 206804
* MinGW: Define __stdcall&co when -fms-extensions is disabledReid Kleckner2014-04-212-22/+29
| | | | | | | | | | This is for compatibility with GCC. Reviewers: asl Differential Revision: http://reviews.llvm.org/D3444 llvm-svn: 206791
* Split out the rest of MS ABI multiple inheritance testsTimur Iskhodzhanov2014-04-215-609/+566
| | | | | | Intentionally duplicate base class definitions per test, so it's easier to copy tests while debugging failures. llvm-svn: 206782
* Objective-C. Patch to allow use of dot syntax on classFariborz Jahanian2014-04-213-10/+49
| | | | | | | objects to fund root class's instance methods. // rdar://16650575 llvm-svn: 206781
* Allow submodule inferrences with a missing umbrella when the module is ↵Ben Langmuir2014-04-212-1/+8
| | | | | | | | | unavailable If the module is unavailable because of a missing header, don't diagnose a "module * {}" declaration for having a missing umbrella. llvm-svn: 206776
* Handle possible trailing '/' in xcode-select output. Patch by Jeff Olson.Ted Kremenek2014-04-211-1/+1
| | | | llvm-svn: 206752
* Initialize clang::Module::IsMissingRequirement. Fix msan issue and hopefully ↵Richard Smith2014-04-211-6/+6
| | | | | | some builder failures. llvm-svn: 206736
* ARM64: Do not expand variadic HFA/HVA arguments with the Darwin ABI.Bob Wilson2014-04-212-6/+30
| | | | | | | | | | | Unlike the standard AAPCS64 ABI, variadic arguments are always passed on the stack with the Darwin ABI, and this was not being considered when deciding whether to expand HFA/HVA arguments in a call. An HFA argument with a "float" base type was being expanded into separate "float" arguments, each of which was then extended to a double, resulting in a serious mismatch from what is expected by the va_arg implementation. <rdar://problem/15777067> llvm-svn: 206729
* Fix a comment typo.Bob Wilson2014-04-211-1/+1
| | | | llvm-svn: 206728
* cindex.py: Avoid deprecated functionAlp Toker2014-04-201-4/+4
| | | | | | | | | Implement Diagnostic::category_name() using clang_getDiagnosticCategoryText() instead of the deprected clang_getDiagnosticCategoryName(). Preserves existing behaviour and API covered by existing tests. llvm-svn: 206712
* Remove some empty statementsAlp Toker2014-04-192-2/+2
| | | | | | Cleanup only. llvm-svn: 206709
* Fix and restore the macro-multiline.c testAlp Toker2014-04-192-8/+7
| | | | | | | | | | | | | This test didn't work as intended and was ultimately disabled some years ago in r169458. Indeed it's not clear if the '\n' was ever passed through to the driver correctly given that lit would insert '&& {' at the newline. Test rewritten to use printf/xargs to insert '\n' in a more reliable manner and to use FileCheck for verification. llvm-svn: 206703
* Disallow driver use in more Sema testsAlp Toker2014-04-193-0/+12
| | | | | | | There are now only a handful of Sema tests remaining that use %clang in SemaCXX, SemaObjC and SemaTemplate. llvm-svn: 206688
* Move ObjC Cocoa.h header test to HeadersAlp Toker2014-04-191-1/+1
| | | | | | | This tests for broad compatibility with platform SDK headers using the clang driver and so belongs alongside the other header ingtegration tests. llvm-svn: 206687
* Re-enable the C++11 modules integration test on OS XAlp Toker2014-04-191-2/+2
| | | | | | | | | | XCode 5.1.1 has shipped with fixed SDK headers. This reverts commit r200256. Fixes PR18322. llvm-svn: 206686
* clang/test/Index/pch-with-errors.c: Remove XFAIL added in r206294. It has ↵NAKAMURA Takumi2014-04-191-3/+0
| | | | | | been fixed since r206644. llvm-svn: 206685
* Speculative fix for buildbot failure. Apparently Clang 3.1 got move ↵Richard Smith2014-04-191-1/+2
| | | | | | semantics wrong. llvm-svn: 206682
* Thread Safety Analysis: Convert to minimal SSA.DeLesley Hutchins2014-04-194-38/+135
| | | | llvm-svn: 206681
* When a module completes the definition of a class template specialization ↵Richard Smith2014-04-1920-149/+559
| | | | | | imported from another module, emit an update record, rather than using the broken decl rewriting mechanism. If multiple modules do this, merge the definitions together, much as we would if they were separate declarations. llvm-svn: 206680
* Thread Safety Analysis: Update SSA pass to handle loops.DeLesley Hutchins2014-04-195-128/+271
| | | | llvm-svn: 206676
* Fix a hole with nested unavailable submodules from r206664Ben Langmuir2014-04-183-4/+6
| | | | | | | | If a module doesn't meet a requirement, neither do its submodules. If we don't propogate that, we might think it's an error to be missing a header in one of those submodules. llvm-svn: 206673
* CodeGen: Remove an unused includeJustin Bogner2014-04-181-1/+0
| | | | llvm-svn: 206667
* Don't build modules with (submodules with) missing headersBen Langmuir2014-04-187-10/+48
| | | | | | | | Unless they are in submodules that aren't available anyway, due to requirements not being met. Also, mark children as unavailable when the parent is. llvm-svn: 206664
* Fix sphinx-build warnings in clang docs.Reid Kleckner2014-04-182-3/+3
| | | | llvm-svn: 206661
* Add support for building Sphinx documentation when being inside LLVM source ↵Reid Kleckner2014-04-181-0/+9
| | | | | | | | tree and using CMake Patch by Daniel Liew <daniel.liew@imperial.ac.uk>! llvm-svn: 206660
* CodeGen: Use LLVM's InstrProfReader in -fprofile-instr-use=Justin Bogner2014-04-187-178/+33
| | | | | | | | | Update clang to use the InstrProfReader from LLVM to read instrumentation based profile data. This also switches us from the naive text format to the binary format, since that's what's implemented in the reader. llvm-svn: 206658
* [Cleanup] Remove a trailing whitespaceJustin Bogner2014-04-181-1/+1
| | | | llvm-svn: 206657
* Don't read CompilerInstance fields that don't exist in ASTUnitBen Langmuir2014-04-181-3/+6
| | | | | | | When transferring data from a CompilerInstance in an error path we need to consider cases where the various fields are uninitialized. llvm-svn: 206644
* Teach users of OnDiskHashTable to define hash_value and offset typesJustin Bogner2014-04-185-22/+52
| | | | | | | | This paves the way to making OnDiskHashTable work with hashes that are not 32 bits wide and to making OnDiskHashTable work very large hash tables. The LLVM change to use these types is upcoming. llvm-svn: 206640
* Remove OnDiskHashTable.h, since it's been moved to llvmJustin Bogner2014-04-188-486/+37
| | | | llvm-svn: 206637
* Split out the no-thunk multiple inheritance testsTimur Iskhodzhanov2014-04-181-0/+302
| | | | | | Also, intentionally duplicate base class definitions per test, so it's easier to copy tests while debugging failures llvm-svn: 206614
* Add more constness to module-related APIsDmitri Gribenko2014-04-184-5/+6
| | | | llvm-svn: 206595
* ARM64: make sure the caller is expected to extend in AAPCS.Tim Northover2014-04-182-2/+10
| | | | | | | This is one of those DarwinPCS differences. It'd been caught in arguments, but not return values. llvm-svn: 206594
* Updating to use more range-based for loops, nullptr and auto. No functional ↵Aaron Ballman2014-04-181-20/+14
| | | | | | changes. llvm-svn: 206590
* ARM64: make sure HFAs on the stack get properly aligned.Tim Northover2014-04-183-10/+23
| | | | | | Another AAPCS bug, part of PR19432. llvm-svn: 206580
* Fix a -Wmicrosoft warning on an unrepresentable enumReid Kleckner2014-04-181-2/+2
| | | | | | | 0x80000000 isn't representable as an int, which is the default enum type. llvm-svn: 206545
* BackendUtil: Pass through -mdisable-tail-callsDuncan P. N. Exon Smith2014-04-182-0/+17
| | | | | | | | | | | | | | | The frontend option -fno-optimize-sibling-calls resolves to -cc1's -mdisable-tail-calls, which is passed to the TargetMachine in the backend. PassManagerBuilder was adding the -tailcallelim pass anyway. Use a new DisableTailCalls option in PassManagerBuilder to disable tail calls harder. Requires the matching commit in LLVM that adds DisableTailCalls. <rdar://problem/16050591> llvm-svn: 206543
OpenPOWER on IntegriCloud