summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* [c-index-test] Enhance perform_test_reparse_source() to allow remapping a fileArgyrios Kyrtzidis2013-12-051-12/+77
| | | | | | | | at a particular reparsing iteration. Passing '-remap-file-1=from:to' will remap the files in the second iteration. llvm-svn: 196486
* [c-index-test] For the '-remap-file=' option use ':' instead of ';' for ↵Argyrios Kyrtzidis2013-12-051-7/+7
| | | | | | | | separator. lldb does not like semicolon as part of an option. llvm-svn: 196485
* clang-format-diff.py: pass through errors to stderr, not stdoutAlp Toker2013-12-051-5/+2
| | | | | | | Also use write() for unified diff output to avoid further processing by the print function (e.g. trailing newline). llvm-svn: 196484
* Add an AdjustedType sugar node for adjusting calling conventionsReid Kleckner2013-12-052-0/+12
| | | | | | | | | | | | | | | | Summary: In general, this type node can be used to represent any type adjustment that occurs implicitly without losing type sugar. The immediate use of this is to adjust the calling conventions of member function pointer types without breaking template instantiation. Fixes PR17996. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D2332 llvm-svn: 196451
* clang-format-diff.py: Fix 'beintroduced' in help outputAlp Toker2013-12-041-1/+1
| | | | | | Also update docs to reflect recently changed -i inplace edit behaviour. llvm-svn: 196336
* CMake: enable building the clang-format vs pluginHans Wennborg2013-12-033-0/+20
| | | | | | | | | | | This makes it possible to build the clang-format vs plugin from the cmake build. It is a hack, as it shells out to "devenv" to actually build it, but it's hidden away in a corner behind a flag, and it provides a convenient way of building the plug-in from the command-line together with the rest of clang. Differential Revision: http://llvm-reviews.chandlerc.com/D2310 llvm-svn: 196299
* Preserve carriage return when using clang-format's XML interface.Manuel Klimek2013-12-031-2/+23
| | | | | | Patch by James Park. llvm-svn: 196265
* Fix method/variable name typosAlp Toker2013-12-031-2/+2
| | | | llvm-svn: 196214
* ClangFormatPackage.cs: fix inconsistent line endingsHans Wennborg2013-12-021-1/+1
| | | | llvm-svn: 196131
* clang-format vs plugin: use Alp's suggestion for getting the pathHans Wennborg2013-12-021-2/+2
| | | | llvm-svn: 196124
* clang-format vs plugin: bake clang-format.exe into the vsixHans Wennborg2013-12-023-1/+11
| | | | | | | | | | | This makes the clang-format plugin self-contained. Instead of requiring clang-format.exe to be available on the PATH, this includes it in the plugin's installer (.vsix file) and runs it from the install directory. Differential Revision: http://llvm-reviews.chandlerc.com/D2281 llvm-svn: 196122
* Added an option to specify fallback style.Alexander Kornienko2013-12-021-3/+10
| | | | | | | | | | | | | | | | Summary: Added -fallback-style option. Changed clang-format to stop searching for .clang-format when an invalid file is found. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2292 llvm-svn: 196108
* Fix typo: s/Occurence/Occurrence/Alp Toker2013-11-302-5/+5
| | | | | | This is a private class member so the fix shouldn't impact external projects. llvm-svn: 195985
* [libclang] Check for LIBCLANG_DISABLE_CRASH_RECOVERY before enabling crash ↵Argyrios Kyrtzidis2013-11-271-6/+2
| | | | | | | | recovery. Suggested by Alp Toker. llvm-svn: 195829
* [libclang] Make sure we don't access past the tokens buffer while token ↵Argyrios Kyrtzidis2013-11-271-7/+29
| | | | | | | | annotation. Also disable crash recovery using 'LIBCLANG_DISABLE_CRASH_RECOVERY' environment variable. llvm-svn: 195819
* Remove a whole lot of unused variablesAlp Toker2013-11-271-1/+0
| | | | | | | There are about 30 removed in this patch, generated by a new FixIt I haven't got round to submitting yet. llvm-svn: 195814
* Clang format VS plugin: update build prerequisites in the READMEHans Wennborg2013-11-251-1/+2
| | | | llvm-svn: 195690
* Add txt file extension to VS solution's READMEAlp Toker2013-11-221-2/+2
| | | | | | | | | This matches other README.txt files in LLVM and makes things more obvious on Windows where it's likely to be read. CRLFs are retained for the same reason. Also fix Visual Studio product name. llvm-svn: 195420
* Install clang-format's editor integrations in $PREFIX/share/clang/Hans Wennborg2013-11-141-0/+5
| | | | | | | | They were previously not part of the install target. Differential Revision: http://llvm-reviews.chandlerc.com/D2154 llvm-svn: 194741
* Work around a bug in old gcc on the FreeBSD bot, which complains aboutDmitri Gribenko2013-11-141-3/+3
| | | | | | ambiguity between index() function and clang::index namespace. llvm-svn: 194638
* libclang does not depend directly on clangFormat; but clangIndex doesDmitri Gribenko2013-11-131-1/+0
| | | | llvm-svn: 194611
* Documentation parsing: move comment-to-XML conversion routines to libIndexDmitri Gribenko2013-11-135-1193/+28
| | | | llvm-svn: 194610
* Make inline functions in a header file static.Dmitri Gribenko2013-11-131-6/+6
| | | | llvm-svn: 194603
* Add an optional mapping from source paths to source contents.Manuel Klimek2013-11-131-0/+36
| | | | | | | | This allows compilation database implementations for distributed build systems to hand all data to the client to make parsing independent of the file system. llvm-svn: 194571
* Documentation parsing: add support for \throws \throw \exception commandsDmitri Gribenko2013-11-121-0/+13
| | | | llvm-svn: 194521
* Upgrade the VS solution to 2012.Manuel Klimek2013-11-123-6/+54
| | | | | | Now we can compile a VSPackage that works with VS 2010-2013 from within VS 2012. llvm-svn: 194488
* Fix key bindings for VS 2010.Manuel Klimek2013-11-121-4/+5
| | | | | | | Set the default key-binding only in the text editor; the global binding of ctrl-r,ctrl-f was already taken in VS 2010. llvm-svn: 194482
* Recreated the ClangFormat VSPackage with VS 2010.Manuel Klimek2013-11-127-45/+46
| | | | | | The generated package is now compatible with VS 2010 - 2013. llvm-svn: 194480
* Revert unintentional commit from r194477.Manuel Klimek2013-11-125-53/+67
| | | | llvm-svn: 194478
* (no commit message)Manuel Klimek2013-11-125-67/+53
| | | | llvm-svn: 194477
* Rather than duplicating extension diagnostics to allow them to cause aRichard Smith2013-11-121-2/+1
| | | | | | | | | | substitution failure, allow a flag to be set on the Diagnostic object, to mark it as 'causes substitution failure'. Refactor Diagnostic.td and the tablegen to use an enum for SFINAE behavior rather than a bunch of flags. llvm-svn: 194444
* Use a StringRef. Saves 0.00000000000001s on execution time.Bill Wendling2013-11-091-1/+1
| | | | llvm-svn: 194301
* Py3k compat for clang-format Sublime Text extension.Sean Silva2013-11-081-1/+2
| | | | | | | | | | | | Sublime Text 2 uses Python 2.6 Sublime Text 3 uses Python 3.3 The `print` function has been available as a __future__ import since 2.6, so use it. Patch by Johan Engelen! llvm-svn: 194287
* clang-format: Write files atomicallyAlp Toker2013-11-081-11/+1
| | | | | | | | | | | | | | | | | | | | | | Switch clang-format over to Rewriter::overwriteChangedFiles(). The previous implementation was attempting to stream back directly to the original file and failing if it was already memory mapped by MemoryBuffer, an operation unsupported by Windows. MemoryBuffer generally mmaps files larger than the physical page size so this will have been difficult to reproduce consistently. This change also reduces flicker in code editors and IDEs on all platforms when reformatting in-place. Note that other incorrect uses of MemoryBuffer exist in LLVM/clang and will need a similar fix. A test should be added for Windows when libFormat performance issues are fixed (it takes longer than a day to format a 1MB file at present!) llvm-svn: 194250
* This patch modified ExeBasename as clang-cl.exe to match the preceding comment.Yaron Keren2013-11-061-1/+1
| | | | llvm-svn: 194170
* [libclang] Some changes on the linker options for libclang on a CMake build.Argyrios Kyrtzidis2013-11-061-3/+11
| | | | | | | | - Use the 'libclang.exports' file. - Pass -Wl,-current_version - Set install name to "@rpath" llvm-svn: 194134
* It is no longer necessary to opt out of pretty stack traces.Filip Pizlo2013-11-041-5/+0
| | | | llvm-svn: 193973
* Store a TypeArgument on an attribute as a TypeSourceInfo*, rather than as aRichard Smith2013-10-312-5/+8
| | | | | | QualType with a SourceLocation stashed alongside. llvm-svn: 193803
* Factor out custom parsing for iboutletcollection and vec_type_hint attributesRichard Smith2013-10-312-4/+4
| | | | | | | | | into a separate "parse an attribute that takes a type argument" codepath. This results in both codepaths being a lot cleaner and simpler, and fixes some bugs where the type argument handling bled into the expression argument handling and caused us to both accept invalid and reject valid attribute arguments. llvm-svn: 193731
* Use LLVMLibsOptions intead of LDFLAGS when setting the libclang soname. This ↵Sylvestre Ledru2013-10-291-1/+1
| | | | | | allows 'make LDFLAGS=foo' to be set correctly (and matches the way it is done with libllvm and liblldb) llvm-svn: 193607
* clang-format.py: Make formatting unnamed buffers work again (broke in r190691).Nico Weber2013-10-251-3/+4
| | | | llvm-svn: 193433
* [analyzer] scan-build: Handle -m* option wildcard after compiler/linker flags.Jordan Rose2013-10-221-4/+5
| | | | | | | | | | Some of the shared compiler/linker flags start with -m, so they've been getting passed to the compiler only since r180073. Now, the -m* wildcard is processed after the shared flags and the ignored flags. Found by Laszlo Nagy! llvm-svn: 193184
* Rename some functions for consistency.Rafael Espindola2013-10-171-4/+4
| | | | | | Every other function in Redeclarable.h was using Decl instead of Declaration. llvm-svn: 192900
* Add llvm_unreachable to pacify GCC's dropping off non-void function warning.Benjamin Kramer2013-10-151-1/+4
| | | | | | + 80 cols fix. llvm-svn: 192728
* [libclang] When querying for the availability of an enumerator, pick up the ↵Argyrios Kyrtzidis2013-10-151-40/+75
| | | | | | | | availability from the enum declaration. rdar://14789001. llvm-svn: 192718
* Changed clang-format-diff.py to output diff by default. Added -i option to ↵Alexander Kornienko2013-10-111-3/+22
| | | | | | | | | | | | | | | | | | | | | | apply changes to files instead. Summary: "svn diff|clang-format-diff.py" will just output the diff. Now it's possible to use: svn diff|clang-format-diff.py|patch -p0 as an equivalent to: svn diff|clang-format-diff.py -i ;) Reviewers: djasper Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1840 llvm-svn: 192505
* [libclang] Introduce clang_Type_getCXXRefQualifier whichexposes ↵Argyrios Kyrtzidis2013-10-113-0/+24
| | | | | | | | ref-qualifier information of function type. Patch by Che-Liang Chiou! llvm-svn: 192493
* clang-format: Don't exit with failure on empty files.Daniel Jasper2013-10-082-2/+3
| | | | | | | | | | Also let clang-format-diff.py detect errors based on clang-format's return code. Otherwise messages like "Can't find usable .clang-format, falling back to LLVM style" can make it fail, which might be undesired. Patch by Alp Toker. Thank you! llvm-svn: 192184
* Driver: Use the canonical command line arguments.David Majnemer2013-10-071-1/+10
| | | | | | | | | | | | | | | Summary: Use the arguments given to the OS at process creation-time instead of the arguments passed into main() by the C runtime environment. The ones that main() received may not be suitable (e.g. not Unicode). Depends on D1834 CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1835 llvm-svn: 192091
* [libclang] Introduce clang_Type_getClassType which returns the class type of ↵Argyrios Kyrtzidis2013-10-032-0/+17
| | | | | | | | a member pointer type. Patch by Che-Liang Chiou! llvm-svn: 191906
OpenPOWER on IntegriCloud