summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix #includes after my last commit.Jakub Staszak2013-01-102-2/+2
| | | | llvm-svn: 172114
* Rename LinkAllVMCore.h to LinkAllIR.h since VMCore directory was renamed to IR.Jakub Staszak2013-01-101-3/+3
| | | | llvm-svn: 172112
* Formatter: No spaces around '=' in @property lines.Nico Weber2013-01-102-3/+19
| | | | | | | | | | | | | Before: @property(assign, getter = isEditable) BOOL editable; Now: @property(assign, getter=isEditable) BOOL editable; It'd be nice if some Apple person could let me know if spaces are preferred around '=' in @synthesize lines (see FIXME in the test). llvm-svn: 172110
* remove the rest of the "written by" lines in the documentation. It isChris Lattner2013-01-1018-50/+2
| | | | | | | against the developer policy to include this sort of thing as SVN blame already captures this in a far more fine-grained way. llvm-svn: 172109
* Replace memcpys by a static_cast and an integral promotion.Dmitri Gribenko2013-01-101-6/+4
| | | | llvm-svn: 172108
* Fix coding styleDmitri Gribenko2013-01-101-5/+3
| | | | llvm-svn: 172107
* Unbreak tests after regression from r172081.Jakub Staszak2013-01-101-0/+2
| | | | llvm-svn: 172105
* [analyzer] Add more checks to the ObjC Ivar Invalidation checker.Anna Zaks2013-01-102-57/+158
| | | | | | | | | | | | | | Restructured the checker so that it could easily find two new classes of issues: - when a class contains an invalidatable ivar, but no declaration of an invalidation method - when a class contains an invalidatable ivar, but no definition of an invalidation method in the @implementation. The second case might trigger some false positives, for example, when the method is defined in a category. llvm-svn: 172104
* In my last patch use InGroup<Switch> (per Dmitri's comment).Fariborz Jahanian2013-01-101-1/+1
| | | | llvm-svn: 172103
* Provide a better warning when case value overflows.Fariborz Jahanian2013-01-103-4/+7
| | | | | | // rdar://11577384 llvm-svn: 172102
* Formatter: Land header change I forgot to land in r172099.Nico Weber2013-01-101-0/+4
| | | | llvm-svn: 172101
* Formatter: Add test for template and protocol parameters in ObjC method ↵Nico Weber2013-01-101-0/+6
| | | | | | declarations. llvm-svn: 172100
* Formatting: In @implementation etc lines, put a space before protocol lists.Nico Weber2013-01-103-10/+24
| | | | | | | | | | | | Don't do this in Google style though: http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml#Protocols Most other places (function declarations, variable declarations) still get this wrong, and since this looks very similiar to template instantiations to the lexer (`id <MyProtocol> a = ...`), it's going to be hard to fix in some places. llvm-svn: 172099
* Refactoring the outermost structure of the formatter.Manuel Klimek2013-01-101-37/+45
| | | | | | | This is the last step of pure shuffling stuff around, the next step will be the actual feature. llvm-svn: 172098
* Remove FIXME fixed by djasper in r172066.Nico Weber2013-01-101-1/+0
| | | | llvm-svn: 172097
* [libclang] Address some coding style issues pointed out by Dmitri.Argyrios Kyrtzidis2013-01-101-2/+3
| | | | llvm-svn: 172096
* Formatter: Don't put a space in ObjC number literals like @+50Nico Weber2013-01-102-5/+6
| | | | | | | | | | Before: @ -4.5 Now: @-4.5 llvm-svn: 172095
* ccc-analyzer: Forward -msse* options to the compiler.Ted Kremenek2013-01-101-0/+4
| | | | llvm-svn: 172094
* Formatter: Add space before '(' in @implemenation, @interface, @protocol linesNico Weber2013-01-103-14/+26
| | | | | | | | The first token in @implementation, @interface, and @protocol lines is now marked TT_ObjCDecl, and lines starting with a TT_ObjCDecl token are now marked LT_ObjCMethodDecl. llvm-svn: 172093
* Pull calculation whether a line fits one level up.Manuel Klimek2013-01-101-29/+36
| | | | | | | This is the next step towards being able to configure multiple unwrapped lines into one. llvm-svn: 172092
* objectiveC++: When throwing c++ exception of Fariborz Jahanian2013-01-105-11/+49
| | | | | | | an objectiveC object, use objc_exception_throw to raise the exception. // rdar://12605907 llvm-svn: 172091
* [libclang] Add missing header fileArgyrios Kyrtzidis2013-01-101-0/+95
| | | | llvm-svn: 172090
* [libclang] Enhance logging capabilities of libclang.Argyrios Kyrtzidis2013-01-105-37/+176
| | | | | | | | | -provide a "raw_ostream'ish" class to make it convenient to output logging info. -use macros to automate a bit the logging functionality inside libclang functions -when logging, print a stack trace if "LIBCLANG_LOGGING=2" environment is set. -add logging to more functions. llvm-svn: 172089
* Diagnostics: name all implicit groups used more than once.Jordan Rose2013-01-105-54/+71
| | | | | | | | | | | | | | | | | This will be a new style requirement going forwards: a diagnostic can only use the implicit InGroup<DiagGroup<"foo">> syntax if "foo" is not used by any other diagnostics; as soon as it is, it needs an explicit group. This also brings some stray "conversion" diagnostics into the "Value Conversion Issue" category, instead of the more generic "Semantic Issue" category. I consider this an improvement! - warn_impcast_complex_scalar - warn_impcast_float_integer - warn_impcast_float_precision - warn_impcast_integer_precision - warn_impcast_vector_scalar llvm-svn: 172088
* Error if an anonymous DiagGroup is referenced multiple times.Jordan Rose2013-01-105-2/+238
| | | | | | | | | | | Not only is this inefficient for TableGen, it's annoying for maintenance when renaming warning flags (unusual) or adding those flags to a group (more likely). This uses the new fix-it infrastructure for LLVM's SourceMgr/SMDiagnostic, as well as a few changes to TableGen to track more source information. llvm-svn: 172087
* Add basic fix-its to SMDiagnostic.Jordan Rose2013-01-102-43/+217
| | | | | | | | | | | | | Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or removal of source text. One or more fix-its can be emitted as part of a diagnostic, and will be printed below the source range line to show the user how they can fix their code. Currently, the only client of SMFixIt is clang-tblgen; thus, the tests for this behavior live in clang/test/TableGen/tg-fixits.td. If/when SMFixIt is adopted within LLVM itself, those tests should be moved to the LLVM suite. llvm-svn: 172086
* TableGen: Keep track of superclass reference ranges.Jordan Rose2013-01-104-40/+57
| | | | | | | | | | def foo : bar; ~~~ This allows us to produce more precise diagnostics about a certain superclass, and even provide fixits. llvm-svn: 172085
* TableGen: record anonymous instantiations of classes.Jordan Rose2013-01-102-11/+28
| | | | llvm-svn: 172084
* Pulling formatFirstToken one level up.Manuel Klimek2013-01-101-85/+91
| | | | | | | | | | | | This prepares the code for single line optimizations and changes the dependencies between single-line-formats to the indent of the first token. Conceptually, the first token is "between" the lines anyway, as the whitespace for the first token includes the previous end-of-line, which needs to be escaped when inside a preprocessor directive. llvm-svn: 172083
* Allow hasProperty() to be called on bundle-internal instructions.Jakob Stoklund Olesen2013-01-102-3/+4
| | | | | | | | | | | | | When calling hasProperty() on an instruction inside a bundle, it should always behave as if IgnoreBundle was passed, and just return properties for the current instruction. Only attempt to aggregate bundle properties whan asked about the bundle header. The assertion fires on existing ARM test cases without this fix. llvm-svn: 172082
* Fix Alias BugDavid Greene2013-01-101-4/+12
| | | | | | | Use memcpy to do type punning instead of a cast. A cast or similar operation through a union breaks strict aliasing rules. llvm-svn: 172081
* style changesShankar Easwaran2013-01-101-8/+8
| | | | llvm-svn: 172080
* LoopVectorizer: Fix a bug in the vectorization of BinaryOperators. The ↵Nadav Rotem2013-01-102-4/+29
| | | | | | | | BinaryOperator can be folded to an Undef, and we don't want to set NSW flags to undef vals. PR14878 llvm-svn: 172079
* [ubsan] Move attribute specifier to fix build with gcc.Will Dietz2013-01-102-12/+12
| | | | llvm-svn: 172078
* Remove locale-dependence of enum mangling and use existing function.Tim Northover2013-01-101-14/+10
| | | | llvm-svn: 172077
* Fixes layout of right braces.Manuel Klimek2013-01-102-5/+29
| | | | | | | | | | | | | | | | | | | | | | 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
* Format what you can when errors are foundAlexander Kornienko2013-01-101-10/+11
| | | | llvm-svn: 172075
* Removing loop-convert toolEdwin Vane2013-01-1030-3327/+2
| | | | | | | | | 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
* Make TableGen mangle operand method names before putting in enum.Tim Northover2013-01-101-2/+13
| | | | | | | | | 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
* Improved clang-format integration support for diagnostic messages outputAlexander Kornienko2013-01-101-1/+6
| | | | llvm-svn: 172072
* Basic support for diagnostics.Alexander Kornienko2013-01-103-12/+31
| | | | | | | | | | | | | | 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
* Fixes formatting of function calls etc inside an initializer list.Manuel Klimek2013-01-102-10/+30
| | | | | | | | | | | | | | | | | | | | | 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
* [sanitizer] better statistics for the large allocatorKostya Serebryany2013-01-102-3/+11
| | | | llvm-svn: 172069
* [sanitizer] fix the non-cmake build (2-nd attempt)Kostya Serebryany2013-01-101-0/+1
| | | | llvm-svn: 172068
* Do not add newline in empty blocks.Manuel Klimek2013-01-108-122/+95
| | | | | | | void f() {} now gets formatted in one line. llvm-svn: 172067
* Let clang-format binary use same LangOpts as test.Daniel Jasper2013-01-101-6/+1
| | | | llvm-svn: 172066
* Improvements to function type and ObjC block formatting.Daniel Jasper2013-01-105-17/+38
| | | | | | | | | | | | | | | | | | | | | 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
* asan/tsan: fix commentDmitry Vyukov2013-01-101-3/+3
| | | | llvm-svn: 172064
* [sanitizer] fix the non-cmake buildKostya Serebryany2013-01-101-3/+3
| | | | llvm-svn: 172063
* [Mips] Pass a combination of +soft-float and -mips16-hard-float flags toSimon Atanasyan2013-01-102-1/+49
| | | | | | the backend if hard float ABI is selected under -mips16 mode. llvm-svn: 172062
OpenPOWER on IntegriCloud