- Jun 18, 2012
-
-
Michael J. Spencer authored
__forceinline is a combination of the inline keyword and __attribute__((always_inline)) llvm-svn: 158653
-
Richard Smith authored
also deal with '>>>' (in CUDA), '>=', and '>>='. Fix the FixItHints logic to deal with cases where the token is followed by an adjacent '=', '==', '>=', '>>=', or '>>>' token, where a naive fix-it would result in a differing token stream on a re-lex. llvm-svn: 158652
-
Joerg Sonnenberger authored
the member expression is in parentheses. llvm-svn: 158651
-
- Jun 17, 2012
-
-
James Dennett authored
llvm-svn: 158630
-
James Dennett authored
* Added \file, \brief and \verbatim...\endverbatim markup, particularly around documentation of subset of the grammars that are being parsed. llvm-svn: 158628
-
James Dennett authored
llvm-svn: 158619
-
James Dennett authored
* Removed docs for Lexer::makeFileCharRange from Lexer.cpp, as they're in the header file; * Reworked the documentation for SkipBlockComment so that it doesn't confuse Doxygen's comment parsing; * Added another summary with \brief markup. llvm-svn: 158618
-
James Dennett authored
llvm-svn: 158617
-
James Dennett authored
formatting of Doxygen's output for StringLiteralParser::StringLiteralParser. llvm-svn: 158616
-
James Dennett authored
* Escaped #pragma (as \#pragma) in Doxygen comments; * Added \code...\endcode annotations around code examples in doc comments. llvm-svn: 158615
-
James Dennett authored
llvm-svn: 158614
-
Richard Smith authored
initializer, it is uninitialized, even if we may be coming from somewhere where it was initialized. llvm-svn: 158611
-
- Jun 16, 2012
-
-
NAKAMURA Takumi authored
clang/lib/Basic/FileManager.cpp: Detect the root directory with PathV2. It should be better fix for PR10331, or, "clang X:\foo.c" fails. llvm-svn: 158596
-
Meador Inge authored
The target specific __builtin_va_list types are now explicitly built instead of injecting strings into the preprocessor input. llvm-svn: 158592
-
Eli Friedman authored
Fix Sema and IRGen for atomic compound assignment so it has the right semantics when promotions are involved. (As far as I can tell, this only affects some edge cases.) llvm-svn: 158591
-
Jordan Rose authored
llvm-svn: 158588
-
Jordan Rose authored
This happens in C++ mode right at the declaration of a struct VLA; MallocChecker sees a bind and tries to get see if it's an escaping bind. It's likely that our handling of this is still incomplete, but it fixes a crash on valid without disturbing anything else for now. llvm-svn: 158587
-
Argyrios Kyrtzidis authored
method definition that has its '{' attached to the method name without a space. With a method like: -(id)meth{ ..... } the logic in ObjCMethodDecl that determined the selector locations got confused because it was initialized based on an end location for '{' but that end location changed to '}' after the method was finished. Fix this by having an immutable end location for the declarator and for getLocEnd() get the end location from the body itself. Fixes rdar://11659739. llvm-svn: 158583
-
Jordan Rose authored
Specifically, although the bitmap context does not take ownership of the buffer (unlike CGBitmapContextCreateWithData), the data buffer can be extracted out of the created CGContextRef. Thus the buffer is not leaked even if its original pointer goes out of scope, as long as - the context escapes, or - it is retrieved via CGBitmapContextGetData and freed. Actually implementing that logic is beyond the current scope of MallocChecker, so for now CGBitmapContextCreate goes on our system function exception list. llvm-svn: 158579
-
Eli Friedman authored
Make the ".*" operator work correctly when the base is a prvalue and the field has a non-trivial copy constructor. PR13097. llvm-svn: 158578
-
Kaelyn Uhrain authored
llvm-svn: 158573
-
Kaelyn Uhrain authored
llvm-svn: 158572
-
Jordan Rose authored
1. Teach Lexer that pragma lexers are like macro expansions at EOF. 2. Treat pragmas like #define/#undef when printing. 3. If we just printed a directive, add a newline before any more tokens. (4. Miscellaneous cleanup in PrintPreprocessedOutput.cpp) PR10594 and <rdar://problem/11562490> (two separate related problems) llvm-svn: 158571
-
James Dennett authored
llvm-svn: 158567
-
James Dennett authored
llvm-svn: 158566
-
James Dennett authored
llvm-svn: 158565
-
James Dennett authored
llvm-svn: 158564
-
James Dennett authored
* Escaped "::" and "<" as needed in Doxygen comments; * Marked up code examples with \code...\endcode; * Documented a \param that is current, instead of a few that aren't; * Fixed up some \file and \brief comments. llvm-svn: 158562
-
James Dennett authored
* Escaped Objective-C @keywords in Doxygen comments; * Documented more accurate \params; * Exposed some more summaries using \brief. llvm-svn: 158559
-
- Jun 15, 2012
-
-
James Dennett authored
llvm-svn: 158554
-
James Dennett authored
llvm-svn: 158552
-
James Dennett authored
broken duplicates of comments that are in the corresponding header files. llvm-svn: 158550
-
James Dennett authored
llvm-svn: 158549
-
James Dennett authored
llvm-svn: 158548
-
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
-