- 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
-
NAKAMURA Takumi authored
ToolingTest.cpp: Fix r158592, runToolOnCode.FindsNoTopLevelDeclOnEmptyCode on msvc. LangOpts.MicrosoftExt still appends "class type_info;". llvm-svn: 158595
-
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
-
Anna Zaks authored
on controlling diagnostics. llvm-svn: 158581
-
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: 158569
-
James Dennett authored
llvm-svn: 158568
-
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
-
Dmitri Gribenko authored
llvm-svn: 158558
-
- Jun 15, 2012
-
-
James Dennett authored
* Escaped # characters in Doxygen comments; * Added Doxygen markup (\brief, \code, \file, \namespace). llvm-svn: 158557
-
James Dennett authored
llvm-svn: 158555
-
James Dennett authored
llvm-svn: 158554
-
James Dennett authored
* Escaped the # of #define in Doxygen comments; * Formatting: Annotated __VA_ARGS__ with \c; * Converted docs to use \brief to provide summaries; * Fixed a typo: disbles -> disables. llvm-svn: 158553
-
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
-
James Dennett authored
not with another <tt>. llvm-svn: 158546
-
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
-
Jordan Rose authored
There was already a test that it did not fire in type-dependent contexts. This was already behaving correctly. llvm-svn: 158530
-
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: 158512
-
James Dennett authored
llvm-svn: 158511
-