- Jan 10, 2013
-
-
Manuel Klimek authored
We now decide whether a newline should go before the closing brace depending on whether a newline was inserted after the opening brace. For example, we now insert a newline before '};' in: static SomeClass WithALoooooooooooooooooooongName = { 100000000, \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" }; ... while not inserting a newline here: static SomeClass = { a, b, c, d, e, f, g, h, i, j, looooooooooooooooooooooooooooooooooongname, looooooooooooooooooooooooooooooong }; Also fixes the formating of (column limit 25): int x = { avariable, b(alongervariable) }; llvm-svn: 172076
-
Alexander Kornienko authored
llvm-svn: 172075
-
Edwin Vane authored
cpp11-migrate now contains the loop convert transform code and tests. Cleaning up the old code/tests and updating build system files as necessary. Reviewers: klimek llvm-svn: 172074
-
Tim Northover authored
The purpose of this patch is to allow PredicateMethods to be set to something like "isUImm<8>", calling a C++ template method to reduce code duplication. For this to work, the PredicateMethod must be mangled into a valid C++ identifier for insertion into an enum. llvm-svn: 172073
-
Alexander Kornienko authored
llvm-svn: 172072
-
Alexander Kornienko authored
Summary: Uses DiagnosticsEngine to output diagnostics. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D278 llvm-svn: 172071
-
Manuel Klimek authored
We're now formatting (column limit 25): int x = { avariable, b(alongervariable) }; This also fixes: Aaa({ int i; }, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccc)); ... where we would previously break after the '},'. Putting the closing curly into an extra line when there's a break directly after the first curly will be done in a subsequent patch. Paired with djasper. llvm-svn: 172070
-
Kostya Serebryany authored
llvm-svn: 172069
-
Kostya Serebryany authored
llvm-svn: 172068
-
Manuel Klimek authored
void f() {} now gets formatted in one line. llvm-svn: 172067
-
Daniel Jasper authored
llvm-svn: 172066
-
Daniel Jasper authored
Before: int (^myBlock) (int) = ^(int num) {} A<void ()>; int (*b)(int); After: int (^myBlock)(int) = ^(int num) {} A<void()>; int(*b)(int); For function types and function pointer types, this patch only makes the behavior consistent (for types that are keywords and other types). For the latter function pointer type declarations, we'll probably want to add a space after "int". Also added LangOpts.Bool = 1, so we handle "A<bool()>" appropriately Moved the LangOpts-settings to a public place for use by tests and clang-format binary. llvm-svn: 172065
-
Dmitry Vyukov authored
llvm-svn: 172064
-
Kostya Serebryany authored
llvm-svn: 172063
-
Simon Atanasyan authored
the backend if hard float ABI is selected under -mips16 mode. llvm-svn: 172062
-
Kostya Serebryany authored
llvm-svn: 172061
-
Dmitry Vyukov authored
llvm-svn: 172060
-
Kostya Serebryany authored
llvm-svn: 172059
-
Manuel Klimek authored
Previously, we would not indent: SOME_MACRO({ int i; }); correctly. This is fixed by adding the trailing }); to the unwrapped line starting with SOME_MACRO({, so the formatter can correctly match the braces and indent accordingly. Also fixes incorrect parsing of initializer lists, like: int a[] = { 1 }; llvm-svn: 172058
-
Evgeniy Stepanov authored
llvm-svn: 172057
-
Daniel Jasper authored
This fixes llvm.org/PR14684. Before: int *pa = (int *) & a; After: int *pa = (int *)&a; We still don't understand all kinds of casts. I added a FIXME to address that. llvm-svn: 172056
-
Evgeniy Stepanov authored
llvm-svn: 172055
-
Joey Gouly authored
llvm-svn: 172054
-
David Tweed authored
version of a test by Joey Gouly to use attributes to materialise the unsupported types and test vector shifts. llvm-svn: 172053
-
Guy Benyei authored
Enable intel_ocl_bicc for x86_64 target only. Remove fix from 171969 that enabled this extension for multiple targets. llvm-svn: 172052
-
Joey Gouly authored
llvm-svn: 172051
-
Manuel Klimek authored
After re-writing the same loop multiple times, we deicided it's time to add this as an optional debugging help. llvm-svn: 172050
-
Daniel Jasper authored
This fixes llvm.org/PR14883, where clang-format would run into an assertion on: void f() { return } 42 llvm-svn: 172049
-
Kostya Serebryany authored
[asan] asan_allocator2: do less work under the quarantine lock; make the strcasecmp test more resistant to the contents of unaddressable memory llvm-svn: 172048
-
David Tweed authored
difference between type widths of a vector and the width of one of its elements in the case of vector shifts. Use correct witdth in the vector case. llvm-svn: 172047
-
Sean Silva authored
PR14889 llvm-svn: 172046
-
Kostya Serebryany authored
llvm-svn: 172045
-
NAKAMURA Takumi authored
llvm-svn: 172044
-
Alex Rosenberg authored
llvm-svn: 172043
-
Alex Rosenberg authored
llvm-svn: 172042
-
Will Dietz authored
Fixes using ubsan on shared libraries in linux, for example. llvm-svn: 172041
-
Shankar Easwaran authored
llvm-svn: 172040
-
rdar://problem/11146929Enrico Granata authored
Enabling support for the wchar_t type. Without the proper language option setup, clang's ASTContexts will be configured to have wchar_t == int This patch enables the correct options to make sure that we report wchar_t as itself Added a test case to make sure we do not regress Adding files missing from the previous commit llvm-svn: 172039
-
rdar://problem/11146929Enrico Granata authored
Enabling support for the wchar_t type. Without the proper language option setup, clang's ASTContexts will be configured to have wchar_t == int This patch enables the correct options to make sure that we report wchar_t as itself Added a test case to make sure we do not regress llvm-svn: 172038
-
NAKAMURA Takumi authored
llvm-svn: 172037
-