- Jan 07, 2013
-
-
Bill Schmidt authored
code generation. Variables addressed through a GlobalAlias were not being handled, and variables with available_externally linkage were treated incorrectly. The patch contains two new tests to verify the correct code generation for these cases. llvm-svn: 171778
-
Fariborz Jahanian authored
list of classes, etc., make sure to look into protocol definitions. // rdar://12958878 llvm-svn: 171777
-
Argyrios Kyrtzidis authored
check if the token was ever a macro name and annotate it if that's the case. llvm-svn: 171776
-
Argyrios Kyrtzidis authored
DenseMap and the lookups associated with it. Instead of lexing for preprocessor tokens, associating the annotation with the location in a map, and later lookup in the map in order to adjust the cursor annotation, just annotate the cursor while lexing for preprocessor tokens. llvm-svn: 171775
-
Argyrios Kyrtzidis authored
Previously type/storage qualifiers would not be annotated as the declaration they belonged to. Just use the resulting source range of getRawCursorExtent() which is more correct than what AnnotateTokensWorker::Visit() was adjusting it to. llvm-svn: 171774
-
Argyrios Kyrtzidis authored
this was ever a macro name and return a specific CXCursor_MacroExpansion cursor in such a case, instead of the generic CXCursor_MacroDefinition. Checking for macro name makes sure the identifier is not part of the identifier list in a function macro. While, in general, resolving identifiers in macro definitions to other macros may not be completely accurate, it greatly improves functionality such as give-me-the-definition-of-this, which was not working at all inside macro definitions. llvm-svn: 171773
-
Argyrios Kyrtzidis authored
llvm-svn: 171772
-
Argyrios Kyrtzidis authored
Lexer::getRawToken(). No functionality change. llvm-svn: 171771
-
Anna Zaks authored
Better handle the blacklisting of known bad deallocators when symbol escapes through a call to CFStringCreateWithBytesNoCopy. Addresses radar://12702952. llvm-svn: 171770
-
Anna Zaks authored
When a property is "inherited" through both a parent class and directly through a protocol, we should not require the child to invalidate it since the backing ivar belongs to the parent class. (Fixes radar://12913734) llvm-svn: 171769
-
Alexander Kornienko authored
Fixed a number of -Wcovered-switch-default diagnostics in tools/clang/include/clang/AST/AttrDump.inc llvm-svn: 171768
-
Nico Weber authored
llvm-svn: 171767
-
Nico Weber authored
@package is an Objective-C 2 feature, so turn on ObjC2 as well. llvm-svn: 171766
-
Jordan Rose authored
This is necessary not only for representing empty ranges, but for handling multibyte characters in the input. (If the end pointer in a range refers to a multibyte character, should it point to the beginning or the end of the character in a char array?) Some of the code in the asm parsers was already assuming this anyway. llvm-svn: 171765
-
Shuxin Yang authored
llvm-svn: 171764
-
Dmitri Gribenko authored
<Declaration> tag llvm-svn: 171763
-
Quentin Colombet authored
turning a code like this: if (foo) free(foo) into that: free(foo) Move a call to free from basic block FB into FB's predecessor, P, when the path from P to FB is taken only if the argument of free is not equal to NULL. Some restrictions apply on P and FB to be sure that this code motion is profitable. Namely: 1. FB must have only one predecessor P. 2. FB must contain only the call to free plus an unconditional branch to S. 3. P's successors are FB and S. Because of 1., we will not increase the code size when moving the call to free from FB to P. Because of 2., FB will be empty after the move. Because of 2. and 3., P's branch instruction becomes useless, so as FB (simplifycfg will do the job). llvm-svn: 171762
-
Manuel Klimek authored
Previous indent: class A { } a; void f() { }; With this patch: class A { } a; void f() { } ; The patch introduces a production for classes and structs, and parses the rest of the line to the semicolon after the class scope. This allowed us to remove a long-standing wart in the parser that would just much the semicolon after any block. Due to this suboptimal formating some tests were broken. Some unrelated formatting tests broke; those hit a bug in the ast printing, and need to be fixed separately. llvm-svn: 171761
-
Alexander Kornienko authored
http://llvm-reviews.chandlerc.com/D234 Patch by Philip Craig! llvm-svn: 171760
-
David Blaikie authored
llvm-svn: 171759
-
Joel Jones authored
llvm-svn: 171758
-
Michael Han authored
Following r168626, in class declaration or definition, there are a combination of syntactic locations where C++11 attributes could appear, and among those the only valid location permitted by standard is between class-key and class-name. So for those attributes appear at wrong locations, fixit is used to move them to expected location and we recover by applying them to the class specifier. llvm-svn: 171757
-
Douglas Gregor authored
rehashed, invaliding the iterator walking through the identifier table. Separate out the identification of out-of-date identifiers from updating them. llvm-svn: 171756
-
David Tweed authored
with respect to the lower "left-hand-side bitwidth" bits, even when negative); see OpenCL spec 6.3j. This patch both implements this behaviour in the code generator and "constant folding" bits of Sema, and also prevents tests to detect undefinedness in terms of the weaker C99 or C++ specifications from being applied. llvm-svn: 171755
-
Nico Weber authored
Before: throw a *b; Now: throw a * b; llvm-svn: 171754
-
Nico Weber authored
llvm-svn: 171753
-
Nico Weber authored
llvm-svn: 171752
-
Nico Weber authored
llvm-svn: 171751
-
NAKAMURA Takumi authored
llvm-svn: 171750
-
Chandler Carruth authored
llvm-svn: 171749
-
Daniel Jasper authored
This should make it slightly more readable as it more clearly separates what happens where. No intended functional changes. More of this to come.. llvm-svn: 171748
-
Chandler Carruth authored
library rename. llvm-svn: 171747
-
Chandler Carruth authored
implementation lives already. llvm-svn: 171746
-
Nico Weber authored
This matches the test change done in clang at r171742. Without this, clang-format would strip '@' characters and format e.g. '@interface' as 'interface'. llvm-svn: 171743
-
Nico Weber authored
Also set ObjC1 in the formatter tests. The only effect of this flag in the lexer is that '@' now gets turned into tok::at instead of tok::unknown. llvm-svn: 171742
-
Chandler Carruth authored
builder these days, and this thing hasn't seen updates for a very long time. llvm-svn: 171741
-
Nico Weber authored
llvm-svn: 171740
-
Chandler Carruth authored
peculiar headers under include/llvm. This struct still doesn't make a lot of sense, but it makes more sense down in TargetLowering than it did before. llvm-svn: 171739
-
Chandler Carruth authored
already in a class, just inline the four of them. I suspect that this class could be simplified some to not always keep distinct variables for these things, but it wasn't clear to me how given the usage so I opted for a trivial and mechanical translation. This removes one of the two remaining users of a header in include/llvm which does nothing more than define a 4 member struct. llvm-svn: 171738
-
Manuel Klimek authored
llvm-svn: 171737
-