- Sep 02, 2013
-
-
Alexander Kornienko authored
llvm-svn: 189762
-
Chandler Carruth authored
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
-
- Aug 30, 2013
-
-
Charles Davis authored
Based on a patch by Benno Rice! llvm-svn: 189644
-
- Aug 29, 2013
-
-
Craig Topper authored
Move individual group name strings from the OptionTable into one big char 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
-
- Aug 28, 2013
-
-
Craig Topper authored
llvm-svn: 189445
-
Craig Topper authored
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
-
Hans Wennborg authored
llvm-svn: 189435
-
Reid Kleckner authored
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
-
- Aug 27, 2013
-
-
Jordan Rose authored
This time, use a variable that's defined consistently in standalone and non-standalone builds. llvm-svn: 189406
-
Reid Kleckner authored
This reverts commit r189371, it broke the in-source cmake build. llvm-svn: 189390
-
Jordan Rose authored
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
-
Jordan Rose authored
Symlinks to clang should go in Clang's build directory, not LLVM's. llvm-svn: 189371
-
- Aug 23, 2013
-
-
Robert Wilhelm authored
No functionality change intended. llvm-svn: 189112
-
- Aug 22, 2013
-
-
Jordan Rose authored
I was bound to screw this up somehow. llvm-svn: 189029
-
Jordan Rose authored
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
-
Eli Friedman authored
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
-
- Aug 21, 2013
-
-
Argyrios Kyrtzidis authored
Follow up to r188850. llvm-svn: 188854
-
Argyrios Kyrtzidis authored
This should fix the bogus ambiguous reference errors reported by gcc 4.2.1 that the FreeBSD bot is using. llvm-svn: 188850
-
Eli Friedman authored
llvm-svn: 188835
-
- Aug 20, 2013
-
-
Hans Wennborg authored
llvm-svn: 188833
-
Michael Gottesman authored
llvm-svn: 188763
-
Michael Gottesman authored
llvm-svn: 188759
-
- Aug 19, 2013
-
-
Dmitri Gribenko authored
llvm-svn: 188678
-
- Aug 18, 2013
-
-
Dmitri Gribenko authored
llvm-svn: 188625
-
NAKAMURA Takumi authored
llvm-svn: 188621
-
- Aug 17, 2013
-
-
Anton Yartsev authored
llvm-svn: 188607
-
Argyrios Kyrtzidis authored
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
-
- Aug 16, 2013
-
-
Benjamin Kramer authored
Replace some DenseMap keys with simpler structures that don't need another DenseMapInfo specialization. llvm-svn: 188580
-
Argyrios Kyrtzidis authored
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
-
- Aug 10, 2013
-
-
Enea Zaffanella authored
llvm-svn: 188134
-
- Aug 08, 2013
-
-
Stefanus Du Toit authored
Also bump the minor version number and update libclang.exports. Reviewed by: Dmitri Gribenko, Doug Gregor llvm-svn: 187994
-
Hans Wennborg authored
There hasn't been a separate cc1 option table since r155916. llvm-svn: 187993
-
Jordan Rose authored
llvm-svn: 187989
-
- Aug 06, 2013
-
-
Larisse Voufo authored
Started implementing variable templates. Top level declarations should be 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
-
- Aug 02, 2013
-
-
Alexey Samsonov authored
llvm-svn: 187647
-
- Aug 01, 2013
-
-
Rafael Espindola authored
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
-
Daniel Jasper authored
Patch by Mark Lodato. Thank you! llvm-svn: 187592
-
- Jul 26, 2013
-
-
Bob Wilson authored
When BUILD_CLANG_ONLY is set to YES, it is supposed to simply limit the tools that get built. The change in r184794 broke this feature by moving libclang and c-index-test into PARALLEL_DIRS. Those are both supposed to be in DIRS, because c-index-test has a build dependency on libclang and cannot be reliably built in parallel with it. llvm-svn: 187246
-
- Jul 25, 2013
-
-
David Blaikie authored
Use the same filtering for assembly arguments to -cc1as as we do for -cc1, this allows a consistent (& more useful) diagnostic experience for users (rather than getting an error from -cc1as (which a user shouldn't really be thinking about) about --foo, they get an error from clang about --foo in -Wa,) I'm sort of surprised by the separation of -cc1as & the separate argument handling, etc, but at least this removes a little bit of the duplication. llvm-svn: 187156
-
- Jul 23, 2013
-
-
Rafael Espindola authored
llvm-svn: 186983
-