summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix Bug 14061 - scan-build crashes during postprocessing if BUGFILE no ↵Sylvestre Ledru2014-07-171-0/+4
| | | | | | | | | | longer exists Experienced with Thunderbird build Patch by Matti Niemenmaa llvm-svn: 213235
* [OPENMP] Initial parsing and sema analysis for 'final' clause.Alexey Bataev2014-07-171-0/+4
| | | | llvm-svn: 213232
* Make clang's rewrite engine a core featureAlp Toker2014-07-1610-21/+13
| | | | | | | | | | | | | | | The rewrite facility's footprint is small so it's not worth going to these lengths to support disabling at configure time, particularly since key compiler features now depend on it. Meanwhile the Objective-C rewriters have been moved under the ENABLE_CLANG_ARCMT umbrella for now as they're comparatively heavy and still potentially worth excluding from lightweight builds. Tests are now passing with any combination of feature flags. The flags historically haven't been tested by LLVM's build servers so caveat emptor. llvm-svn: 213171
* Prune Redundant libdeps in CMake's target_link_libraries and LLVMBuild.txt.NAKAMURA Takumi2014-07-151-1/+0
| | | | | | I checked this with Release+Asserts on x86_64-mingw32. Please restore partially if this were overkill. llvm-svn: 213064
* Define ENABLE_CLANG_ARCMT in the legacy build system tooAlp Toker2014-07-141-0/+4
| | | | llvm-svn: 213010
* Fix the !CLANG_ENABLE_ARCMT buildAlp Toker2014-07-143-10/+28
| | | | llvm-svn: 212995
* Fix typosAlp Toker2014-07-142-2/+2
| | | | | | Also consolidate 'backward compatibility' llvm-svn: 212974
* [OPENMP] Parsing and sema analysis for 'omp task' directive.Alexey Bataev2014-07-112-0/+10
| | | | llvm-svn: 212804
* Remove dead code from r212620Alp Toker2014-07-091-35/+3
| | | | llvm-svn: 212622
* cc1as: consolidate option flags with cc1 and eliminate duplicationAlp Toker2014-07-091-12/+48
| | | | | | | | | | The clang -cc1as options are nearly a strict subset of -cc1. Instead of duplicating the definitions and documentation, let's go ahead and share the definitions in a similar way the current handling of combined driver and frontend flags, eliminating some of the vestigial legacy surrounding the assembler subcommand. llvm-svn: 212620
* [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive.Alexey Bataev2014-07-082-0/+11
| | | | llvm-svn: 212516
* libclang: pass return code out argument by referenceAlp Toker2014-07-072-19/+16
| | | | | | | | r212427 formalized the message-passing pattern by making these argument structures const. This commit changes output arguments to get passed by reference so we can eliminate mutable fields. llvm-svn: 212497
* Driver: Produce crash diagnostics more often on WindowsReid Kleckner2014-07-071-2/+7
| | | | | | | | | | | | | Assertion failures call abort(), which return an exit code of 3 on Windows. The 'not' utility has the same check. Unfortunately, the crash-report.c test requires a shell, so it does not run for me locally, so I can only test this manually. There's still more work to be done here: we should generate a batch script instead of a shell script on Windows. llvm-svn: 212481
* [OPENMP] Added initial support for 'omp parallel for'.Alexey Bataev2014-07-072-0/+11
| | | | llvm-svn: 212453
* Switch over a few uses of param_begin() to parameters()Alp Toker2014-07-071-2/+2
| | | | llvm-svn: 212442
* Peel away old-style file remapping typedefs and cruftAlp Toker2014-07-071-4/+2
| | | | llvm-svn: 212438
* libclang: refactor handling of unsaved_filesAlp Toker2014-07-074-86/+83
| | | | | | | Consolidate CXUnsavedFile argument handling in API functions to support a wider cleanup of various file remapping schemes in the frontend. llvm-svn: 212427
* Add an AST node for __leave statements, hook it up.Nico Weber2014-07-072-0/+6
| | | | | | | Codegen is still missing (and I won't work on that), but __leave is now as implemented as __try and friends. llvm-svn: 212425
* Update for llvm api change.Rafael Espindola2014-07-063-17/+19
| | | | llvm-svn: 212408
* libclang: make darwin pthread hacks conditional on LLVM_ENABLE_THREADSAlp Toker2014-07-061-5/+8
| | | | | | | | Although these aren't strictly related to LLVM's core threading, it's reasonable to avoid pthread usage in clang when building with LLVM_ENABLE_THREADS disabled. llvm-svn: 212395
* Track IntrusiveRefCntPtr::get() changes from LLVM r212366Alp Toker2014-07-052-6/+6
| | | | llvm-svn: 212369
* driver: add link dependency on CodeGenAlp Toker2014-07-011-0/+1
| | | | | | | | | | Fix the build when no targets are enabled. This dependency is incurred by two unfortunate entries in LinkAllPasses.h included from cc1_main.cpp: llvm::createJumpInstrTablesPass(); llvm::createCodeGenPreparePass(); llvm-svn: 212084
* Remove llvm:: from uses of ArrayRef.Craig Topper2014-06-281-1/+1
| | | | llvm-svn: 211987
* Remove 'const' from MemoryBuffers used through the SourceManagerDavid Blaikie2014-06-274-9/+9
| | | | | | | | | | | | | | This removes a const_cast added in r211884 that occurred due to an inconsistency in how MemoryBuffers are handled between some parts of clang and LLVM. MemoryBuffers are immutable and the general convention in the LLVM project is to omit const from immutable types as it's simply redundant/verbose (see llvm::Type, for example). While this change doesn't remove "const" from /every/ MemoryBuffer, it at least makes this chain of ownership/usage consistent. llvm-svn: 211915
* Fix a bug in my previous patch by restoring the behavior that the fatalChandler Carruth2014-06-271-1/+14
| | | | | | | | | | | | | | error handler is only registered once. To avoid the use of std::call_once (the obvious way to do this) I've wrapped everything up into a managed static and done the work in a constructor. Silly, but it should be effective. Some out-of-tree libclang users reported this to me, and I've asked them to put together a test case which exhibits this behavior, but I wanted to fix things ASAP since the nature of the fix is straight forward. llvm-svn: 211905
* This fixes libclang to cope with the now compile-time multithreadedChandler Carruth2014-06-271-13/+5
| | | | | | | | | selection re-enabled in r211900 in LLVM. The approach (unlike r211121) doesn't rely on std::mutex or std::call_once to avoid breaknig cygwin bots. llvm-svn: 211901
* [OPENMP] Parsing and sema analysis for 'copyprivate' clause.Alexey Bataev2014-06-271-0/+4
| | | | llvm-svn: 211886
* [OPENMP] Initial parsing and sema analysis for 'single' directive.Alexey Bataev2014-06-262-0/+10
| | | | llvm-svn: 211774
* [OPENMP] Initial parsing and sema analysis for 'section' directive.Alexey Bataev2014-06-262-0/+10
| | | | llvm-svn: 211767
* [OPENMP] Initial support for 'sections' directive.Alexey Bataev2014-06-252-0/+10
| | | | llvm-svn: 211685
* Revert r211121 (and r211285), "Change libclang initialization to use ↵NAKAMURA Takumi2014-06-241-9/+12
| | | | | | | | std::call_once instead of" It broke mingw builder and cygwin-clang stage2, possibly lack of tls in <mutex>. llvm-svn: 211593
* [OPENMP] Initial support for 'nowait' clause.Alexey Bataev2014-06-201-0/+2
| | | | llvm-svn: 211352
* [OPENMP] Initial support for 'ordered' clause.Alexey Bataev2014-06-201-0/+2
| | | | llvm-svn: 211347
* [OPENMP] Initial support for 'schedule' clause.Alexey Bataev2014-06-201-0/+4
| | | | llvm-svn: 211342
* diagtool: refactor TreeView to resemble C++Alp Toker2014-06-201-103/+101
| | | | | | | Replace lots of old-school parameter passing with neat class members. No attempt made yet to modernize loops, but it's a start. llvm-svn: 211327
* diagtool: simplify TreeView diagnostic classificationAlp Toker2014-06-191-3/+3
| | | | | | This utility doesn't need to know about the specifics of diagnostic levels. llvm-svn: 211323
* Don't call llvm_start_multithreaded() during init. As of LLVMZachary Turner2014-06-191-2/+0
| | | | | | revision r211277, this function is essentially a no-op. llvm-svn: 211285
* [OPENMP] Initial support for '#pragma omp for' (fixed incompatibility with ↵Alexey Bataev2014-06-182-0/+10
| | | | | | MSVC). llvm-svn: 211140
* Change libclang initialization to use std::call_once instead ofZachary Turner2014-06-171-12/+11
| | | | | | | hand rolled once-initialization, and rename the mutex to be more descriptive of its actual purpose. llvm-svn: 211121
* Revert "[OPENMP] Initial support for '#pragma omp for'."Rafael Espindola2014-06-172-10/+0
| | | | | | | | This reverts commit r211096. Looks like it broke the msvc build: SemaOpenMP.cpp(140) : error C4519: default template arguments are only allowed on a class template llvm-svn: 211113
* [OPENMP] Initial support for '#pragma omp for'.Alexey Bataev2014-06-172-0/+10
| | | | llvm-svn: 211096
* actually, just check if it is a file (including directory or symlink)Sylvestre Ledru2014-06-161-1/+1
| | | | llvm-svn: 211053
* Check that the directory does not exist.Sylvestre Ledru2014-06-161-0/+6
| | | | | | | | | | | Otherwise, it could allows local users to obtain sensitive information or overwrite arbitrary files via a symlink attack on temporary directories with predictable names. Reported as CVE-2014-2893 ( https://security-tracker.debian.org/tracker/CVE-2014-2893 ) Found by Jakub Wilk llvm-svn: 211051
* [OPENMP] Initial support of 'reduction' clauseAlexey Bataev2014-06-161-0/+3
| | | | llvm-svn: 211007
* List the function/method name in the index page of scan-buildSylvestre Ledru2014-06-141-3/+14
| | | | llvm-svn: 210971
* With the option '-analyzer-config stable-report-filename=true',Sylvestre Ledru2014-06-141-0/+9
| | | | | | | | instead of report-XXXXXX.html, scan-build/clang analyzer generate report-<filename>-<function, method name>-<function position>-<id>.html. (id = i++ for several issues found in the same function/method) llvm-svn: 210970
* Refer to error_code with the std prefix.Rafael Espindola2014-06-122-2/+3
| | | | llvm-svn: 210817
* Include system_error directly.Rafael Espindola2014-06-123-3/+3
| | | | llvm-svn: 210802
* Replace llvm::error_code with std::error_code.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210780
* Revert "Clang changes to support LLVM removal of runtime multithreading"Zachary Turner2014-06-101-5/+12
| | | | | | This reverts r210601. llvm-svn: 210604
OpenPOWER on IntegriCloud