summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix the MCTargetAsmParser API change.Joey Gouly2013-09-121-1/+1
| | | | llvm-svn: 190601
* [libclang] In clang_getLocation, check that the provided line/column is valid.Argyrios Kyrtzidis2013-09-121-0/+2
| | | | | | rdar://14971432 llvm-svn: 190568
* Fix 2 cases of uninitialized reads of an invalid PresumedLoc.Evgeniy Stepanov2013-09-111-13/+15
| | | | | | | | | The code in CGExpr was added back in 2012 (r165536) but not exercised in tests until recently. Detected on the MemorySanitizer bootstrap bot. llvm-svn: 190521
* Allow _clang-format as alternative to .clang-format config filenameHans Wennborg2013-09-104-5/+18
| | | | | | | | | | | Dotfiles are impractical on Windows. This makes clang-format search for the style configuration file as '_clang-format' in addition to the usual '.clang-format'. This is similar to how VIM searches for '_vimrc' on Windows. Differential Revision: http://llvm-reviews.chandlerc.com/D1629 llvm-svn: 190413
* Update to the new API interface which requires the MCRegisterInfo object. ↵Bill Wendling2013-09-091-2/+3
| | | | | | <rdar://problem/13623355> llvm-svn: 190291
* OpenMP: Data-sharing attributes analysis and clause 'shared' (fixed test ↵Alexey Bataev2013-09-062-0/+9
| | | | | | threadprivate_messages.cpp) llvm-svn: 190183
* Make error text if clang-format is not on the system PATH more helpful,Manuel Klimek2013-09-051-1/+10
| | | | | | | as this is going to be a common mistake (installing LLVM defaults to not putting the tools onto the PATH). llvm-svn: 190036
* Adds a VSPackage project that builds a VS extension to run clang-format over ↵Manuel Klimek2013-09-0415-0/+959
| | | | | | a selection / the line at the cursor. llvm-svn: 189955
* clang-cl: Use "clang cl.exe" when disambiguating the diagnostic prefix.Reid Kleckner2013-09-041-2/+2
| | | | llvm-svn: 189909
* clang-cl: Avoid confusing diagnostics when clang-cl is called just cl.exeReid Kleckner2013-09-041-1/+8
| | | | llvm-svn: 189901
* Remove unused typedef.Eric Christopher2013-09-031-1/+0
| | | | llvm-svn: 189844
* Revert "OpenMP: Data-sharing attributes analysis and clause 'shared'"Rafael Espindola2013-09-032-9/+0
| | | | | | | | This reverts commit r189795. threadprivate_messages.cpp is faling on windows. llvm-svn: 189811
* OpenMP: Data-sharing attributes analysis and clause 'shared'Alexey Bataev2013-09-032-0/+9
| | | | llvm-svn: 189795
* Added WebKit style to the BasedOnStyle handling and to the relevant help ↵Alexander Kornienko2013-09-022-4/+6
| | | | | | messages. llvm-svn: 189765
* Whitespace changes in help messages + updated help output in .rst file.Alexander Kornienko2013-09-021-4/+4
| | | | llvm-svn: 189762
* Switch the default mode for clang-format to '-file'. Make 'LLVM' theChandler Carruth2013-09-024-14/+16
| | | | | | | | | | | | | | | | | | | fallback syntax used when we fail to find a '.clang-format' file. Adjust variable names appropriately. Update the editor integration pieces that specify a '-style' option to specify it as '-style=file'. I left the functionality in place because even if the preferred method is to use '.clang-format' files, this way if someone needs to clobber the style in their editor we show how to do so in these examples. Also check in a '.clang-format' file for Clang to ensure that separate checkouts and builds of Clang from LLVM can still get the nice formatting. =] This unfortunately required nuking the test for the absence of a '.clang-format' file as now the directory happening to be under your clang source tree will cause there to always be a file. ;] llvm-svn: 189741
* Add ms_abi and sysv_abi attribute handling.Charles Davis2013-08-301-0/+2
| | | | | | Based on a patch by Benno Rice! llvm-svn: 189644
* Move individual group name strings from the OptionTable into one big char ↵Craig Topper2013-08-293-9/+9
| | | | | | array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o. llvm-svn: 189568
* Reorder and shrink size of NameLen field in diagnostic group table. Shaves ↵Craig Topper2013-08-282-5/+7
| | | | | | ~4K from clang binary. llvm-svn: 189445
* Merge diagnostic group tables to reduce data size and relocation entries.Craig Topper2013-08-282-15/+23
| | | | | | | | The individual group and subgroups tables are now two large tables. The option table stores an index into these two tables instead of pointers. This reduces the size of the options tabe since it doesn't need to store pointers. It also reduces the number of relocations needed. My build shows this reducing DiagnosticsIDs.o and the clang binary by ~20.5K. It also removes ~400 relocation entries from DiagnosticIDs.o. llvm-svn: 189438
* cmake: install a cl.exe binary in the tools/msbuild-bin dirHans Wennborg2013-08-281-0/+9
| | | | llvm-svn: 189435
* Delete CC_Default and use the target default CC everywhereReid Kleckner2013-08-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Makes functions with implicit calling convention compatible with function types with a matching explicit calling convention. This fixes things like calls to qsort(), which has an explicit __cdecl attribute on the comparator in Windows headers. Clang will now infer the calling convention from the declarator. There are two cases when the CC must be adjusted during redeclaration: 1. When defining a non-inline static method. 2. When redeclaring a function with an implicit or mismatched convention. Fixes PR13457, and allows clang to compile CommandLine.cpp for the Microsoft C++ ABI. Excellent test cases provided by Alexander Zinenko! Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1231 llvm-svn: 189412
* CMake: Fix standalone Clang build, take two.Jordan Rose2013-08-271-3/+3
| | | | | | | This time, use a variable that's defined consistently in standalone and non-standalone builds. llvm-svn: 189406
* Revert "CMake: Fix out-of-source build's symlinks."Reid Kleckner2013-08-271-3/+3
| | | | | | This reverts commit r189371, it broke the in-source cmake build. llvm-svn: 189390
* scan-build: Set CC and CXX as make variables when wrapping make builds.Jordan Rose2013-08-271-4/+4
| | | | | | | | | Variables set in a makefile are not overridden by environment variables. Make sure we actually override CC and CXX when using scan-build. Patch by Steve McCoy! llvm-svn: 189372
* CMake: Fix out-of-source build's symlinks.Jordan Rose2013-08-271-3/+3
| | | | | | Symlinks to clang should go in Clang's build directory, not LLVM's. llvm-svn: 189371
* Use pop_back_val() instead of both back() and pop_back().Robert Wilhelm2013-08-231-2/+1
| | | | | | No functionality change intended. llvm-svn: 189112
* Re-add clang-check to the Makefile build.Jordan Rose2013-08-221-0/+4
| | | | | | I was bound to screw this up somehow. llvm-svn: 189029
* Fix dependencies now that the ARC migrator depends on the static analyzer.Jordan Rose2013-08-222-9/+19
| | | | | | | | | | Thanks for pointing this out, Stephen. I think this is right now -- I attempted to try all four valid combinations with both the autoconf and CMake builds. See also LLVM changes to the configure script. llvm-svn: 189027
* Split isFromMainFile into two functions.Eli Friedman2013-08-221-1/+1
| | | | | | | | | Basically, isInMainFile considers line markers, and isWrittenInMainFile doesn't. Distinguishing between the two is useful when dealing with files which are preprocessed files or rewritten with -frewrite-includes (so we don't, for example, print useless warnings). llvm-svn: 188968
* Remove more uses of 'index' as namespace scope.Argyrios Kyrtzidis2013-08-211-6/+6
| | | | | | Follow up to r188850. llvm-svn: 188854
* Avoid using the 'index' namespace as scope.Argyrios Kyrtzidis2013-08-211-8/+9
| | | | | | This should fix the bogus ambiguous reference errors reported by gcc 4.2.1 that the FreeBSD bot is using. llvm-svn: 188850
* Fix iterator invalidation. PR16935.Eli Friedman2013-08-201-3/+4
| | | | llvm-svn: 188835
* Look at lowercase version of argv[0] when determining driver modeHans Wennborg2013-08-201-0/+2
| | | | llvm-svn: 188833
* [autotools->cmake] Added support for building clang with an order file.Michael Gottesman2013-08-201-0/+5
| | | | llvm-svn: 188763
* [autotools->cmake] Added support for creating the clang driver plist for OS X.Michael Gottesman2013-08-201-0/+27
| | | | llvm-svn: 188759
* Use cstdio instead of stdio.hDmitri Gribenko2013-08-192-2/+2
| | | | llvm-svn: 188678
* libclang: cleanup unused includes in public headerDmitri Gribenko2013-08-182-0/+2
| | | | llvm-svn: 188625
* {c-index-test|c-arcmt-test}/Makefile: Update USEDLIBS along corresponding to ↵NAKAMURA Takumi2013-08-182-2/+2
| | | | | | clangIndex. llvm-svn: 188621
* + make scan-build work with Strawberry Perl, ActiveState Perl, cygwin perl ↵Anton Yartsev2013-08-171-7/+12
| | | | | | and msys perl ports. llvm-svn: 188607
* Rename libIDE to libIndex.Argyrios Kyrtzidis2013-08-173-17/+17
| | | | | | | Per feedback from Chandler, it's better to have libraries with more specific functionality. LibIndex will contain the indexing functionality of libclang, which includes USR generation. llvm-svn: 188601
* Replace some DenseMap keys with simpler structures that don't need another ↵Benjamin Kramer2013-08-161-34/+1
| | | | | | DenseMapInfo specialization. llvm-svn: 188580
* Introduce the clangIDE library.Argyrios Kyrtzidis2013-08-163-814/+35
| | | | | | | | | | Libclang has a lot of functionality that is inaccessible. The purpose of clangIDE is to move most of the functionality of libclang to it so we can expose it and have libclang be more of a thin C wrapper over clangIDE. Start by moving the USR generation functionality into clangIDE. llvm-svn: 188569
* Added source locs for angled parentheses in class/var template partial specs.Enea Zaffanella2013-08-102-5/+8
| | | | llvm-svn: 188134
* Add clang_Location_isFromMainFile() to libclang.Stefanus Du Toit2013-08-082-0/+12
| | | | | | | | Also bump the minor version number and update libclang.exports. Reviewed by: Dmitri Gribenko, Doug Gregor llvm-svn: 187994
* Remove misleading comment about using cc1 option table.Hans Wennborg2013-08-081-4/+4
| | | | | | There hasn't been a separate cc1 option table since r155916. llvm-svn: 187993
* scan-build: pass -target through to analyzerJordan Rose2013-08-081-0/+1
| | | | llvm-svn: 187989
* Started implementing variable templates. Top level declarations should be ↵Larisse Voufo2013-08-062-1/+99
| | | | | | fully supported, up to some limitations documented as FIXMEs or TODO. Static data member templates work very partially. Static data member templates of class templates need particular attention... llvm-svn: 187762
* Assume UniqueID is zero for invalid PPRegion to fix uninitialized reads ↵Alexey Samsonov2013-08-021-1/+1
| | | | | | reported by MSan llvm-svn: 187647
* Use llvm::sys::fs::UniqueID for windows and unix.Rafael Espindola2013-08-012-27/+25
| | | | | | | | | | | | | | | | | | | This unifies the unix and windows versions of FileManager::UniqueDirContainer and FileManager::UniqueFileContainer by using UniqueID. We cannot just replace "struct stat" with llvm::sys::fs::file_status, since we want to be able to construct fake ones, and file_status has different members on unix and windows. What the patch does is: * Record only the information that clang is actually using. * Use llvm::sys::fs::status instead of stat and fstat. * Use llvm::sys::fs::UniqueID * Delete the old windows versions of UniqueDirContainer and UniqueFileContainer since the "unix" one now works on windows too. llvm-svn: 187619
OpenPOWER on IntegriCloud