- Sep 30, 2013
-
-
David Blaikie authored
llvm-svn: 191682
-
Edwin Vane authored
The help text for clang-format's -style option and the function that processes its value is moved to libFormat in this patch. The goal is to enable other tools that use libFormat and also have a -style option to behave consistently with clang-format. llvm-svn: 191666
-
- Sep 26, 2013
-
-
Bob Wilson authored
The previous change caused the driver to translate -Wa,-L to the -msave-temp-labels option for cc1as, but cc1as did not accept that option. This patch follows the same approach used for similar options (-relax-all, -noexecstack) in the previous patch. llvm-svn: 191458
-
- Sep 25, 2013
-
-
Argyrios Kyrtzidis authored
Patch by Loïc Jaquemet! llvm-svn: 191345
-
- Sep 24, 2013
-
-
Alexey Bataev authored
1. Fixed constructor of shared clause. 2. Some macros for clauses processing are replaced by private template methods. 3. Additional checks in sema analysis of OpenMP clauses. llvm-svn: 191265
-
- Sep 22, 2013
-
-
Benjamin Kramer authored
llvm-svn: 191176
-
- Sep 21, 2013
-
-
Daniel Jasper authored
Copy and paste error in r190935.. llvm-svn: 191137
-
- Sep 18, 2013
-
-
Daniel Jasper authored
clang-format's -lines parameter makes this significantly easier. llvm-svn: 190935
-
Hal Finkel authored
LLVM supports applying conversion instructions to vectors of the same number of elements (fptrunc, fptosi, etc.) but there had been no way for a Clang user to cause such instructions to be generated when using builtin vector types. C-style casting on vectors is already defined in terms of bitcasts, and so cannot be used for these conversions as well (without leading to a very confusing set of semantics). As a result, this adds a __builtin_convertvector intrinsic (patterned after the OpenCL __builtin_astype intrinsic). This is intended to aid the creation of vector intrinsic headers that create generic IR instead of target-dependent intrinsics (in other words, this is a generic _mm_cvtepi32_ps). As noted in the documentation, the action of __builtin_convertvector is defined in terms of the action of a C-style cast on each vector element. llvm-svn: 190915
-
- Sep 16, 2013
-
-
Argyrios Kyrtzidis authored
Patch by Anders Waldenborg! llvm-svn: 190796
-
Jordan Rose authored
Patch by Kevin Zheng! llvm-svn: 190789
-
- Sep 14, 2013
-
-
Jordan Rose authored
This is necessary when running two scan-build processes in parallel. The directory naming scheme is now: yyyy-MM-dd-HHmmss-PID-N 2013-09-13-174210-123-1 where "PID" is the scan-build process ID, and "N" is a sequential counter (not likely to be needed now that seconds are mangled in, but just in case). PR17196, using a suggested fix from Greg Czajkowski! llvm-svn: 190735
-
- Sep 13, 2013
-
-
David Blaikie authored
Let me tell you a tale... Within some twisted maze of debug info I've ended up implementing an insane man's Include What You Use device. When the debugger emits debug info it really shouldn't, I find out why & then realize the code could be improved too. In this instance CIndexDiagnostics.cpp had a lot more debug info with Clang than GCC. Upon inspection a major culprit was all the debug info describing clang::Sema. This was emitted because clang::Sema is befriended by DiagnosticEngine which was rightly required, but GCC doesn't emit debug info for friends so it never emitted anything for Clang. Clang does emit debug info for friends (will be fixed/changed to reduce debug info size). But why didn't Clang just emit a declaration of Sema if this entire TU didn't require a definition? 1) Diagnostic.h did the right thing, only using a declaration of Sema and not including Sema.h at all. 2) Some other dependency of CIndexDiagnostics.cpp didn't do the right thing. ASTUnit.h, only needing a declaration, still included Sema.h (hence this commit which removes that include and adds the necessary includes to the cpp files that were relying on this) 3) -flimit-debug-info didn't save us because of EnterExpressionEvaluationContext, defined inline in Sema.h which fires the "requiresCompleteType" check/flag (since it uses nested types from Sema and calls Sema member functions) and thus, if debug info is ever emitted for the type, the whole type is emitted and not just a declaration. Improving -flimit-debug-info to account for this would be... hard. Modifying the code so that's not 'required to be complete' might be possible, but probably only by moving EnterExpressionEvaluationContext either into Sema, or out of Sema.h. That might be a bit too much of a contortion to be bothered with. Also, this is only one of the cases where emitting debug info for friends caused us to emit a lot more debug info (this change reduces Clang's DWO size by 0.93%, dropping friends entirely reduces debug info by 3.2%) - I haven't hunted down the other cases, but I assume they might be similar (Sema or something like it). IWYU or a similar tool might help us reduce build times a bit, but analyzing debug info to find these differences isn't worthwhile. I'll take the 3.2% win, provide this small improvement to the code itself, and move on. llvm-svn: 190715
-
Daniel Jasper authored
With -style=file, clang-format now starts to search for a .clang-format file starting at the file given with -assume-filename if it reads from stdin. Otherwise, it would start searching from the current directory, which is not helpful for editor integrations. Also changed vim, emacs and sublime integrations to actually make use of this flag. This fixes llvm.org/PR17072. llvm-svn: 190691
-
- Sep 12, 2013
-
-
Joey Gouly authored
llvm-svn: 190601
-
Argyrios Kyrtzidis authored
rdar://14971432 llvm-svn: 190568
-
- Sep 11, 2013
-
-
Evgeniy Stepanov authored
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
-
- Sep 10, 2013
-
-
Hans Wennborg authored
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
-
- Sep 09, 2013
-
-
- Sep 06, 2013
-
-
Alexey Bataev authored
OpenMP: Data-sharing attributes analysis and clause 'shared' (fixed test threadprivate_messages.cpp) llvm-svn: 190183
-
- Sep 05, 2013
-
-
Manuel Klimek authored
as this is going to be a common mistake (installing LLVM defaults to not putting the tools onto the PATH). llvm-svn: 190036
-
- Sep 04, 2013
-
-
Manuel Klimek authored
Adds a VSPackage project that builds a VS extension to run clang-format over a selection / the line at the cursor. llvm-svn: 189955
-
Reid Kleckner authored
llvm-svn: 189909
-
Reid Kleckner authored
llvm-svn: 189901
-
- Sep 03, 2013
-
-
Eric Christopher authored
llvm-svn: 189844
-
Rafael Espindola authored
This reverts commit r189795. threadprivate_messages.cpp is faling on windows. llvm-svn: 189811
-
Alexey Bataev authored
llvm-svn: 189795
-
- Sep 02, 2013
-
-
Alexander Kornienko authored
llvm-svn: 189765
-
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
-