- Feb 14, 2011
-
-
Chris Lattner authored
llvm-svn: 125488
-
John McCall authored
access-control diagnostics which arise from the portion of the declarator following the scope specifier, just in case access is granted by friending the individual method. This can also happen with in-line member function declarations of class templates due to templated-scope friend declarations. We were really playing fast-and-loose before with this sort of thing, and it turned out to work because *most* friend functions are in file scope. Making us delay regardless of context exposed several bugs with how we were manipulating delay. I ended up needing a concept of a context that's independent of the declarations in which it appears, and then I actually had to make some things save contexts correctly, but delay should be much cleaner now. I also encapsulated all the delayed-diagnostics machinery in a single subobject of Sema; this is a pattern we might want to consider rolling out to other components of Sema. llvm-svn: 125485
-
Peter Collingbourne authored
FP_CONTRACT pragmas. Patch originally by ARM. llvm-svn: 125475
-
Peter Collingbourne authored
llvm-svn: 125474
-
Peter Collingbourne authored
llvm-svn: 125473
-
- Feb 13, 2011
-
-
Fariborz Jahanian authored
llvm-svn: 125468
-
Fariborz Jahanian authored
implementation of co/contra-variance objc++ block pointers. // rdar://8979379. llvm-svn: 125467
-
John McCall authored
Stmt::const_child_range, then make a bunch of places use them instead of the individual iterator accessors. llvm-svn: 125450
-
John McCall authored
destruction in the destructor-aliases logic. Fixes PR 9197. llvm-svn: 125447
-
- Feb 12, 2011
-
-
Fariborz Jahanian authored
types which are contravariance in argument types and covariance in return types. // rdar://8979379. llvm-svn: 125445
-
Ted Kremenek authored
llvm-svn: 125443
-
Argyrios Kyrtzidis authored
Temporarily set the first (canonical) declaration as the previous one, which is the one that matters, and mark the real previous DeclID to be loaded & attached later on. Fixes rdar://8956193. llvm-svn: 125434
-
Ted Kremenek authored
Weaken the ObjCSelfInitChecker to only warn when one calls an 'init' method within an 'init' method. This is a temporary stop gap to avoid false positives while we investigate how to make it smarter. llvm-svn: 125427
-
Ted Kremenek authored
static analyzer: Also invalidate instance variables of a receiver in a message expression, just as we do with parameters. Fixes <rdar://problem/8725041>. llvm-svn: 125422
-
Ted Kremenek authored
Don't emit a dead store for '++' operations unless it occurs with a return statement. We've never seen any other cases that were real bugs. Fixes <rdar://problem/6962292>. llvm-svn: 125419
-
Jeffrey Yasskin authored
I also sorted the tools/driver dependencies since their order no longer matters. llvm-svn: 125417
-
-
- Feb 11, 2011
-
-
Zhanyong Wan authored
Reviewed by dgregor. llvm-svn: 125407
-
Peter Collingbourne authored
llvm-svn: 125399
-
Ted Kremenek authored
llvm-svn: 125396
-
Ted Kremenek authored
llvm-svn: 125395
-
Douglas Gregor authored
Rename the operation that loads a preprocessed entity from a given offset to indicate that we're loading from an offset, not an index, lest one be confused. No functionality change. llvm-svn: 125394
-
Fariborz Jahanian authored
is unqualified but its initialized is qualified. This is for c only and fixes the imm. problem. c++ is more involved and is wip. // rdar://8979379 llvm-svn: 125386
-
Zhanyong Wan authored
This patch contains: - making some of the existing comments more accurate in the presence of virtual files/directories. - renaming some private data members of FileManager to match their roles better. - creating 'DirectorEntry's for the parent directories of virtual files, such that we can tell whether two virtual files are from the same directory. This is useful for injecting virtual files whose directories don't exist in the real file system. - minor clean-ups and adding comments for class FileManager::UniqueDirContainer and FileManager::UniqueFileContainer. - adding statistics on virtual files to FileManager::PrintStats(). - adding unit tests to verify the existing and new behavior of FileManager. llvm-svn: 125384
-
Douglas Gregor authored
contents when it's safe. I just *love* C++ some days. llvm-svn: 125378
-
NAKAMURA Takumi authored
llvm-svn: 125364
-
Ted Kremenek authored
llvm-svn: 125362
-
Rafael Espindola authored
llvm-svn: 125360
-
Ken Dyck authored
unnecessary calls to RoundUpToAlignment. No changes to functionality intended. llvm-svn: 125356
-
Ken Dyck authored
CharUnits to sizes in bits, and use it to tidy up the places where the conversion was done explicitly. llvm-svn: 125332
-
Rafael Espindola authored
llvm-svn: 125330
-
Douglas Gregor authored
causing the deserialization of a large number of declarations when writing the visible-updates record for the translation unit in C. This takes us from: *** AST File Statistics: 2 stat cache hits 6 stat cache misses 1/64463 source location entries read (0.001551%) 15606/16956 types read (92.038216%) 59266/89334 declarations read (66.342041%) 38952/61393 identifiers read (63.446976%) 0/7778 selectors read (0.000000%) 24192/34644 statements read (69.830276%) 388/8809 macros read (4.404586%) 2095/5189 lexical declcontexts read (40.373867%) 0/4587 visible declcontexts read (0.000000%) 0/7716 method pool entries read (0.000000%) 0 method pool misses to *** AST File Statistics: 2 stat cache hits 6 stat cache misses 1/64463 source location entries read (0.001551%) 26/16956 types read (0.153338%) 18/89334 declarations read (0.020149%) 145/61393 identifiers read (0.236183%) 0/7778 selectors read (0.000000%) 21/34644 statements read (0.060617%) 0/8809 macros read (0.000000%) 0/5189 lexical declcontexts read (0.000000%) 0/4587 visible declcontexts read (0.000000%) 0/7716 method pool entries read (0.000000%) 0 method pool misses when generating a chained PCH for a header that #includes Cocoa.h (from a PCH file) and adds one simple function declaration. The generated PCH file is now only 9580 bytes (down from > 2MB). llvm-svn: 125326
-
Douglas Gregor authored
we would deserialize all of the macro definitions we knew about while serializing the macro definitions at the end of the AST/PCH file. Even though we skipped most of them (since they were unchanged), it's still a performance problem. Now, we do the standard AST/PCH chaining trick: watch what identifiers are deserialized as macro names, and consider only those identifiers (along with macro definitions that have been deserialized/written in the source) when serializing the preprocessor state. llvm-svn: 125324
-
Rafael Espindola authored
llvm-svn: 125321
-
- Feb 10, 2011
-
-
Matt Beaumont-Gay authored
llvm-svn: 125309
-
Daniel Dunbar authored
llvm-svn: 125299
-
Daniel Dunbar authored
llvm-svn: 125298
-
Douglas Gregor authored
macro definitions by macro name first. That way, we'll get a stable ordering in the AST/PCH file. llvm-svn: 125297
-
Argyrios Kyrtzidis authored
For -Woverloaded-virtual take into account canonical methods. Fixes rdar://8979966 & http://llvm.org/PR9182. llvm-svn: 125296
-
Daniel Dunbar authored
llvm-svn: 125293
-