summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "Update for LLVM change (StringSaver)"Sean Silva2014-08-151-2/+13
| | | | | | | | | This reverts commit r215785 / 170ebf4f19459ae51a9561d0e65c87ee4c9b2c97. LLD has some StringSavers that need to be updated. One of which takes a lock and I need to investigate that more closely. llvm-svn: 215791
* Update for LLVM change (StringSaver)Sean Silva2014-08-151-13/+2
| | | | | | | | There is more cleanup to be done here. Once llvm::sys::Process::GetArgumentVector is switched over to StringSaver, we can simplify this code a fair amount. llvm-svn: 215785
* Rename as suggested by dblaikieSean Silva2014-08-151-2/+2
| | | | llvm-svn: 215774
* ArrayRef'izeSean Silva2014-08-153-23/+19
| | | | | | | I've shied away from ArrayRef'izing CompilerInvocation::CreateFromArgs in this commit because that is a less localized change. llvm-svn: 215773
* Rename this function to better reflect its purposeSean Silva2014-08-151-2/+2
| | | | | | Thanks to dblaikie for the impetus to look for a better name. llvm-svn: 215767
* [cleanup] Rename this function to better reflect its purpose. NFC.Sean Silva2014-08-151-9/+9
| | | | | | | | | | This also suggests some refactoring to simplify this code. Basically, a ton of complexity in this argument handling code comes from the need to save const char *'s in stable storage for pushing onto argv. It seems like llvm::cl::StringSaver can be improved to cover all the needs here. llvm-svn: 215761
* [cleanup] Range-for'ify this loop. NFC.Sean Silva2014-08-151-4/+3
| | | | llvm-svn: 215760
* [cleanup] Factor out handling CC1 tools. NFC.Sean Silva2014-08-151-14/+15
| | | | llvm-svn: 215759
* [cleanup] Factor out setting the driver's install dir. NFC.Sean Silva2014-08-151-20/+22
| | | | llvm-svn: 215756
* [cleanup] Factor out initializing the DianosticOptions. NFC.Sean Silva2014-08-151-13/+19
| | | | llvm-svn: 215755
* [cleanup] Factor out adjusting "cl.exe" to "clang-cl.exe". NFC.Sean Silva2014-08-151-7/+11
| | | | llvm-svn: 215754
* [cleanup] Factor out some checks. NFC.Sean Silva2014-08-151-14/+18
| | | | | | | | | | | The core logic in main() is actually pretty simple, but there's lots of stuff that has been added over time which obscures the flow of the code. In upcoming patches, I'll be pulling more stuff out of the main codepath. I'm open to naming suggestions for these helper functions. llvm-svn: 215751
* Header guard canonicalization, clang part.Benjamin Kramer2014-08-1315-31/+31
| | | | | | Modifications made by clang-tidy with minor tweaks. llvm-svn: 215557
* Modify behavior of -ast-dump-lookups: if -ast-dump is not also provided, dumpRichard Smith2014-08-111-1/+2
| | | | | | | | anyway. If -ast-dump *is* also provided, then dump the AST declarations as well as the lookup results. This is invaluable for cross-correlating the lookup information with the declarations actually found. llvm-svn: 215393
* Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325)David Blaikie2014-08-102-8/+8
| | | | | | | | After post-commit review and community discussion, this seems like a reasonable direction to continue, making ownership semantics explicit in the source using the type system. llvm-svn: 215323
* std::unique_ptr-ify the result of ASTUnit::LoadFromASTFileDavid Blaikie2014-08-101-6/+6
| | | | llvm-svn: 215320
* Fix a bug when scan-build is used in a cross-compilation environment withSylvestre Ledru2014-08-081-2/+13
| | | | | | | | | | | | | the --use-cc option. Instead, we will search in the PATH For example: scan-build --use-cc=arm-none-eabi-gcc -o out make -e Initially reported as a Debian Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748777 llvm-svn: 215229
* CompilationDatabase: Sure-up ownership of compilation databases using ↵David Blaikie2014-08-081-3/+3
| | | | | | | | | | | | | std::unique_ptr Diving into the memory leaks fixed by r213851 there was one case of a memory leak of a CompilationDatabase due to not properly taking ownership of the result of "CompilationDatabase::autoDetectFromSource". Given that both implementations and callers have been using unique_ptr to own CompilationDatabase objects - make this explicit in the API to reduce the risk of further leaks. llvm-svn: 215215
* Expose the CUDA shared attribute to the C API.Eli Bendersky2014-08-082-0/+3
| | | | | | | | Similar to r209767, which exposed other CUDA-related attributes. Patch by Rob Springer. llvm-svn: 215208
* Add missing header guards.Benjamin Kramer2014-08-082-0/+9
| | | | llvm-svn: 215202
* Objective-C ARC. First patch toward generating new APIsFariborz Jahanian2014-08-061-0/+6
| | | | | | | for Objective-C's array and dictionary literals. rdar://17554063. This is wip. llvm-svn: 214983
* libclang/Makefile: Update LINK_COMPONENTS take #3. Sorry for the noise.NAKAMURA Takumi2014-08-021-1/+1
| | | | llvm-svn: 214620
* libclang/Makefile: Update LINK_COMPONENTS take #2.NAKAMURA Takumi2014-08-021-1/+1
| | | | llvm-svn: 214619
* libclang/Makefile: Restore some components in LINK_COMPONENTS. Clang's ↵NAKAMURA Takumi2014-08-021-1/+1
| | | | | | Makefile(s) are not transitive on clang libs. llvm-svn: 214617
* libclang: Update LINK_COMPONENTS.NAKAMURA Takumi2014-08-022-1/+2
| | | | llvm-svn: 214616
* Update build instructions for the clang-format VS pluginHans Wennborg2014-08-011-4/+7
| | | | llvm-svn: 214529
* Add IR Mangler for more stable mangling.Eli Bendersky2014-08-011-12/+21
| | | | llvm-svn: 214520
* Fix a memory leak - dispose of the CXString after printing it in mangling.Eli Bendersky2014-08-011-0/+1
| | | | | | Thanks to kcc@ for noticing. llvm-svn: 214506
* clang-format vs plugin: claim support for VS 14 CTP tooHans Wennborg2014-08-011-0/+3
| | | | llvm-svn: 214461
* Exposes a C API to name mangling for a given cursor.Eli Bendersky2014-07-313-0/+42
| | | | | | | | | Inspired by https://gist.github.com/tritao/2766291, and was previously discussed on cfe-dev: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-June/037577.html Adding testing capability via c-index-test. llvm-svn: 214410
* clang-format vs plugin: include the licenseHans Wennborg2014-07-293-2/+12
| | | | | | | | | The vsix installer will show the license when it starts, and it would print an annoying message when there was none. While we're here, add a MoreInfoUrl. llvm-svn: 214237
* [OPENMP] Initial parsing and sema analysis for clause 'seq_cst' of 'atomic' ↵Alexey Bataev2014-07-241-0/+2
| | | | | | directive. llvm-svn: 213846
* [OPENMP] Initial parsing and sema analysis for clause 'capture' in 'atomic' ↵Alexey Bataev2014-07-241-0/+2
| | | | | | directive. llvm-svn: 213842
* [OPENMP] Initial parsing and sema analysis for 'update' clause of 'atomic' ↵Alexey Bataev2014-07-231-0/+2
| | | | | | directive. llvm-svn: 213735
* [OPENMP] Initial parsing an sema analysis for 'write' clause of 'atomic' ↵Alexey Bataev2014-07-231-0/+2
| | | | | | directive. llvm-svn: 213728
* [OPENMP] Initial parsing and sema analysis for 'read' clause in 'atomic' ↵Alexey Bataev2014-07-231-0/+2
| | | | | | directive. llvm-svn: 213717
* [OPENMP] Initial parsing and sema analysis for 'atomic' directive.Alexey Bataev2014-07-222-0/+10
| | | | llvm-svn: 213639
* [OPENMP] Initial parsing and sema analysis for 'ordered' directive.Alexey Bataev2014-07-222-0/+10
| | | | llvm-svn: 213616
* clang-format vs plugin: set version number from cmake (PR20307)Hans Wennborg2014-07-212-4/+11
| | | | | | | | | | | | | | | Previously it was hard-coded to 1.0, which meant the installer would not install the plugin over previous versions. This commit makes us use LLVM's major.minor.patch version from cmake, or whatever CLANG_FORMAT_VS_VERSION is set to when configuring the build. It's pretty dirty to update a configuration file in the source directory from the cmake build like this. However, the plugin build is already dirty in this regard since it builds in the source dir when visual studio, and then copies out the resulting vsix. llvm-svn: 213584
* [OPENMP] Initial parsing and sema analysis for 'flush' directive.Alexey Bataev2014-07-212-0/+13
| | | | llvm-svn: 213512
* [OPENMP] Parsing/Sema of the OpenMP directive 'critical'.Alexander Musman2014-07-212-0/+13
| | | | llvm-svn: 213510
* [OPENMP] Initial parsing and sema analysis for 'taskwait' directive.Alexey Bataev2014-07-182-0/+10
| | | | llvm-svn: 213363
* [OPENMP] Initial parsing and sema analysis for 'barrier' directive.Alexey Bataev2014-07-182-0/+10
| | | | llvm-svn: 213360
* [OPENMP] Initial parsing and sema analysis of 'taskyield' directive.Alexey Bataev2014-07-182-0/+11
| | | | llvm-svn: 213355
* Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie2014-07-172-8/+8
| | | | | | | | | This reverts commit r213307. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. llvm-svn: 213325
* unique_ptr-ify ownership of ASTConsumersDavid Blaikie2014-07-172-8/+8
| | | | | | | | | (after fixing a bug in MultiplexConsumer I noticed the ownership of the nested consumers was implemented with raw pointers - so this fixes that... and follows the source back to its origin pushing unique_ptr ownership up through there too) llvm-svn: 213307
* [OPENMP] Initial parsing and sema analysis of 'mergeable' clause.Alexey Bataev2014-07-171-0/+2
| | | | llvm-svn: 213262
* [OPENMP] Initial support for parsing and sema analysis of 'untied' clause.Alexey Bataev2014-07-171-0/+2
| | | | llvm-svn: 213257
* [OPENMP] Parsing/Sema analysis of directive 'master'Alexander Musman2014-07-172-0/+10
| | | | llvm-svn: 213237
* Consistency on the tab/spaceSylvestre Ledru2014-07-171-18/+18
| | | | llvm-svn: 213236
OpenPOWER on IntegriCloud