- Jul 19, 2013
-
-
Alexander Kornienko authored
Added -lines X:Y option to specify line range to process. This is a more human-friendly alternative to -offset and -length. Differential Revision: http://llvm-reviews.chandlerc.com/D1160 llvm-svn: 186625
-
Fariborz Jahanian authored
declaration when converting to NS_ENUM. This required some code refactoring. llvm-svn: 186619
-
- Jul 18, 2013
-
-
Hans Wennborg authored
llvm-svn: 186617
-
Hans Wennborg authored
and add a new option --driver-mode= to control it explicitly. The CCCIsCXX and CCCIsCPP flags were non-overlapping, i.e. there are currently really three modes that Clang can run in: gcc, g++ or cpp, so it makes sense to represent them as an enum. Having a command line flag to control it helps testing. llvm-svn: 186605
-
Fariborz Jahanian authored
- wip. llvm-svn: 186604
-
Reid Kleckner authored
MSBuild writes response files as UTF-16 little endian with a byte order mark. With this change, clang will be able to read them, although we still can't parse any of their flags. Adds a UTF-16-LE response file with a BOM for testing. Differential Revision: http://llvm-reviews.chandlerc.com/D1137 llvm-svn: 186603
-
Samuel Benzaquen authored
Summary: Change how error messages are constructed and stored in Diagnostics. Separate the notion of 'context' when recursing down in the parser and actual errors. This will simplify adding some new features, like argument overloading and error recovery. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1168 llvm-svn: 186602
-
Aaron Ballman authored
Changed declarations from Attr to InheritableAttr as they are already being processed that way semantically. Patch thanks to Dean Sutherland! Reviewed by Eli Friedman. llvm-svn: 186598
-
Aaron Ballman authored
llvm-svn: 186591
-
Aaron Ballman authored
Test contents were somehow duplicated, resulting in any testcase that fails automatically failing twice. Removing the duplicates. llvm-svn: 186590
-
Aaron Ballman authored
Replacing a morally duplicate diagnostic by adding it to an existing diagnostic's select list. Updates the tests for the more consistent diagnostic. llvm-svn: 186584
-
Daniel Jasper authored
Before: void f() { (a->* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)(aaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb); } After: void f() { (a->*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)( aaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb); } Also add missing test case. llvm-svn: 186583
-
Manuel Klimek authored
Use CaptureDroppedDiagnostics to make sure that there is a diagnostic client installed when warning flags are parsed. llvm-svn: 186582
-
Aaron Ballman authored
Removed a parameter from handleAttrWithMessage to make it more consistent with other attribute handlers, as well as other attribute error messages. Added missing test cases for the unavailable attribute, and updated the deprecated test case. llvm-svn: 186578
-
JF Bastien authored
Add x86-64 triple, and check its datalayout. Also add some comments, and use the new CHECK-LABEL. llvm-svn: 186564
-
Adrian Prantl authored
llvm-svn: 186557
-
Eric Christopher authored
use the conversion to bool to check if we've managed to get a type that isn't default constructed - as we meant to in the first place. llvm-svn: 186556
-
Adrian Prantl authored
llvm-svn: 186555
-
Adrian Prantl authored
llvm-svn: 186554
-
Adrian Prantl authored
__destroy_helper_block_, but do generate scope information. llvm-svn: 186553
-
Adrian Prantl authored
inspired by CodegenFunction::LexicalScope. - NoLocation temporarily turns off debug locations altogether. This is useful for emitting instructions that should be counted towards the function prologue. - BuiltinLocation temporarily switches to an artificial debug location that has a valid scope, but no line information. This is useful when emitting compiler-generated helper functions that have no source location associated with them. llvm-svn: 186552
-
Adrian Prantl authored
llvm-svn: 186551
-
Adrian Prantl authored
llvm-svn: 186550
-
John Thompson authored
llvm-svn: 186547
-
Richard Smith authored
r186331). Original commit log: If we friend a declaration twice, that should not make it visible to name lookup in the surrounding context. Slightly rework how we handle friend declarations to inherit the visibility of the prior declaration, rather than setting a friend declaration to be visible whenever there was a prior declaration. llvm-svn: 186546
-
Eric Christopher authored
llvm-svn: 186542
-
- Jul 17, 2013
-
-
Robert Wilhelm authored
llvm-svn: 186537
-
Reid Kleckner authored
cl.exe treats wide bitfields as an error. This patch causes them to be an error if IsMsStruct is true, as it is in straight C. Patch by Warren Hunt! Reviewers: eli.friedman Differential Revision: http://llvm-reviews.chandlerc.com/D1125 llvm-svn: 186536
-
Daniel Jasper authored
Before: SomeType s __attribute__((unused))(InitValue); After: SomeType s __attribute__((unused)) (InitValue); llvm-svn: 186535
-
David Blaikie authored
http://llvm-reviews.chandlerc.com/D1169 Patch by Guillaume Papin. llvm-svn: 186526
-
Jean-Daniel Dupas authored
llvm-svn: 186524
-
NAKAMURA Takumi authored
llvm-svn: 186523
-
Enea Zaffanella authored
llvm-svn: 186522
-
Jordan Rose authored
Previously, we would simply abort the path when we saw a default member initialization; now, we actually attempt to evaluate it. Like default arguments, the contents of these expressions are not actually part of the current function, so we fall back to constant evaluation. llvm-svn: 186521
-
Jordan Rose authored
Previously, SValBuilder knew how to evaluate StringLiterals, but couldn't handle an array-to-pointer decay for constant values. Additionally, RegionStore was being too strict about loading from an array, refusing to return a 'char' value from a 'const char' array. Both of these have been fixed. llvm-svn: 186520
-
Jordan Rose authored
Previously, the use of a std::initializer_list (actually, a CXXStdInitializerListExpr) would cause the analyzer to give up on the rest of the path. Now, it just uses an opaque symbolic value for the initializer_list and continues on. At some point in the future we can add proper support for initializer_list, with access to the elements in the InitListExpr. <rdar://problem/14340207> llvm-svn: 186519
-
Hans Wennborg authored
Also make some strings static and add missing #undef's llvm-svn: 186518
-
Daniel Jasper authored
The AlwaysBreakBeforeMultilineStrings rule does not really make sense if it does not a column gain. Before (in Google style): f( "aaaa" "bbbb"); After: f("aaaa" "bbbb"); llvm-svn: 186515
-
Samuel Benzaquen authored
Summary: Continue adding more matchers to the dynamic registry. This time, we add TemplateArgument matchers. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1166 llvm-svn: 186514
-
Samuel Benzaquen authored
Summary: Now that CXXCtorInitializer is already supported in ASTNodeKind, add CXXCtorInitializer matchers to the dynamic matcher registry. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1158 llvm-svn: 186508
-