- Jun 15, 2012
-
-
Alexis Hunt authored
llvm-svn: 158545
-
Jordan Rose authored
Specifically, @[] and @{} didn't have a type associated with them; we now use "NSArray *" and "NSDictionary *", respectively. @"" has the type "NSString *". @(), unfortunately, has type "id", since it (currently) may be either an NSNumber or an NSString. Add a test for all the Objective-C at-expression completions. <rdar://problem/11507708&11507668&11507711> llvm-svn: 158533
-
Jordan Rose authored
We already didn't track objects that have delegates or callbacks or objects that are passed through void * "context pointers". It's a not-uncommon pattern to release the object in its callback, and so the leak message we give is not very helpful. llvm-svn: 158532
-
Jordan Rose authored
This is explicitly forbidden in C99 6.7.4p3. This is /not/ forbidden in C++, probably because by default file-scope const/constexpr variables have internal linkage, while functions have external linkage. There's also the issue of anonymous namespaces to consider. Nevertheless, there should probably be a similar warning, since the semantics of inlining a function that references a variable with internal linkage do not seem well-defined. <rdar://problem/11577619> llvm-svn: 158531
-
Douglas Gregor authored
for unexpanded parameter packs. Fixes the crash-on-invalid in PR13117. llvm-svn: 158525
-
NAKAMURA Takumi authored
llvm-svn: 158521
-
James Dennett authored
llvm-svn: 158511
-
James Dennett authored
on ASTContext::CreateTypeSourceInfo that duplicated information from the (more complete) version in ASTContext.h. llvm-svn: 158504
-
James Dennett authored
* Add \brief to produce a summary in the Doxygen output; * Add missing parameter names to \param commands; * Fix mismatched parameter names for \param commands; * Add a parameter name so that the \param has a target. llvm-svn: 158503
-
James Dennett authored
llvm-svn: 158501
-
James Dennett authored
* Removed \param comments for parameters that no longer exist; * Fixed a "\para" typo to "\param"; * Escaped @, # and \ symbols as needed in Doxygen comments; * Added use of \brief to output short summaries. llvm-svn: 158498
-
James Dennett authored
llvm-svn: 158495
-
Craig Topper authored
llvm-svn: 158492
-
John McCall authored
semantics of a ctor/dtor function-try-block catch handler by pushing a normal cleanup is not just overkill but actually actively wrong when the handler contains an explicit return (which is only legal in a dtor). Just emit the rethrow as ordinary code at the fallthrough point. Fixes PR13102. llvm-svn: 158488
-
Richard Smith authored
modes. For languages other than C99/C11, this isn't quite a conforming extension, and for C++11, it breaks some reasonable code containing user-defined literals. In languages which don't officially have hexfloats, pare back this extension to only apply in cases where the token starts 0x and does not contain an underscore. The extension is still not quite conforming, but it's a lot closer now. llvm-svn: 158487
-
David Blaikie authored
This condition (added in r158093) was overly conservative. llvm-svn: 158483
-
Richard Trieu authored
llvm-svn: 158478
-
Richard Trieu authored
llvm-svn: 158477
-
- Jun 14, 2012
-
-
James Dennett authored
* Escape #, < and @ symbols where Doxygen would try to interpret them; * Fix several function param documentation where names had got out of sync; * Delete param documentation referring to parameters that no longer exist. llvm-svn: 158472
-
Daniel Jasper authored
a CXXRecordDecl is complete. Fixes Bug 13086. llvm-svn: 158469
-
David Blaikie authored
Review by Chandler Carruth. llvm-svn: 158463
-
David Blaikie authored
llvm-svn: 158460
-
David Blaikie authored
llvm-svn: 158459
-
David Blaikie authored
llvm-svn: 158458
-
James Dennett authored
OBJC_AT_KEYWORD_NAME take a string literal argument where previously its second argument was an unquoted token; macro invocations such as OBJC_AT_KEYWORD_NAME(NeedAt,{) confuse Doxygen's parser. While I'm wary of changing code (rather than just comments) to work around Doxygen's limitations, in this case the change makes the code more readable for human beings as well, and the macro derived no benefit from using the preprocessor's stringification operator, as it never has need of the unquoted token. I've also included a couple of trivial drive-by fixes to doc comments. llvm-svn: 158440
-
James Dennett authored
This reduces the number of warnings generated by Doxygen by about 100 (roughly 10%). Issues addressed: (1) Primarily, backslash-escaped "@foo" and "#bah" in Doxygen comments when they're not supposed to be Doxygen commands or links, and similarly for "<baz>" when it's not intended as as HTML tag; (2) Changed some \t commands (which don't exist) to \c ("to refer to a word of code", as the Doxygen manual says); (3) \precondition becomes \pre; (4) When touching comments, deleted a couple of spurious spaces in them; (5) Changed some \n and \r to \\n and \\r; (6) Fixed one tiny typo: #pragms -> #pragma. This patch touches documentation/comments only. llvm-svn: 158422
-
- Jun 13, 2012
-
-
Richard Trieu authored
llvm-svn: 158420
-
Richard Smith authored
override whether headers are system headers by checking for prefixes of the header name specified in the #include directive. This allows warnings to be disabled for third-party code which is found in specific subdirectories of include paths. llvm-svn: 158418
-
Richard Trieu authored
class and have StmtPrinter and StmtDumper refer to it. This fixes an assertion failure when dumping wchar string literals. llvm-svn: 158417
-
John McCall authored
llvm-svn: 158416
-
Richard Smith authored
the input: token-pasting was producing a tok::eof. Patch by Andy Gibbs! llvm-svn: 158412
-
Daniel Jasper authored
-Wunused-private-field. llvm-svn: 158411
-
Kaelyn Uhrain authored
a multi-line comment, fixing builds with e.g. -Werror=comment enabled. llvm-svn: 158406
-
Richard Smith authored
llvm-svn: 158391
-
Richard Smith authored
llvm-svn: 158390
-
Richard Smith authored
unsigned type is narrowing if the source is non-constant or negative. llvm-svn: 158377
-
Charles Davis authored
- Support mangling virtual function tables (base tables need work on the ManglerContext interface). - Correct mangling of local scopes (i.e. functions and C++ methods). - Replace every llvm_unreachable() for actually-reachable code with a diagnostic. llvm-svn: 158376
-
- Jun 12, 2012
-
-
Chad Rosier authored
statements are allowed on the same line. llvm-svn: 158372
-
Chad Rosier authored
Specifically, improve the handling of whitespace, stop saving tokens that are in comments and fix the case where we have a comment followed by a closing brace on the next line. Unfortunately, there's no easy way of testing this code. llvm-svn: 158367
-
Douglas Gregor authored
make sure that we walk the definition. Fixes <rdar://problem/11427742>. llvm-svn: 158357
-