- Feb 21, 2012
-
-
Nico Weber authored
llvm-svn: 151027
-
Douglas Gregor authored
initializers of data members (both static and non-static). llvm-svn: 151017
-
Aaron Ballman authored
llvm-svn: 151014
-
Ted Kremenek authored
Have ScanReachableSymbols reported reachable regions. Fixes a false positive with nested array literals. <rdar://problem/10686586> llvm-svn: 151012
-
Douglas Gregor authored
default arguments of function parameters. This simple-sounding task is complicated greatly by two issues: (1) Default arguments aren't actually a real context, so we need to maintain extra state within lambda expressions to track when a lambda was actually in a default argument. (2) At the time that we parse a default argument, the FunctionDecl doesn't exist yet, so lambda closure types end up in the enclosing context. It's not clear that we ever want to change that, so instead we introduce the notion of the "effective" context of a declaration for the purposes of name mangling. llvm-svn: 151011
-
Nick Lewycky authored
llvm-svn: 151010
-
Anna Zaks authored
llvm-svn: 151008
-
Anna Zaks authored
llvm-svn: 151007
-
Eli Friedman authored
llvm-svn: 151005
-
Argyrios Kyrtzidis authored
from the one stored in the PCH/AST, while trying to load a SLocEntry. We verify that all files of the PCH did not change before loading it but this is not enough because: - The AST may have been 1) kept around, 2) to do queries on it. - We may have 1) verified the PCH and 2) started parsing. Between 1) and 2) files may change and we are going to have crashes because the rest of clang cannot deal with the ASTReader failing to read a SLocEntry. Handle this by recovering gracefully in such a case, by initializing the SLocEntry with the info from the PCH/AST as well as reporting failure by the ASTReader. rdar://10888929 llvm-svn: 151004
-
Richard Smith authored
explicit specialization of a function template, mark the instantiation as constexpr if the specialization is, rather than requiring them to match. llvm-svn: 151001
-
Eric Christopher authored
llvm-svn: 150996
-
- Feb 20, 2012
-
-
Argyrios Kyrtzidis authored
Recording nested macro expansions is not useful, plus it fixes rdar://10893630 llvm-svn: 150995
-
Fariborz Jahanian authored
the 'invariant.load' metadata tag onto those loads. // rdar://10840980 llvm-svn: 150994
-
Anna Zaks authored
tests. llvm-svn: 150993
-
Anna Zaks authored
llvm-svn: 150989
-
Anna Zaks authored
checks: - unix.Malloc - Checks for memory leaks, double free, use-after-free. - unix.cstring.NullArg - Checks for null pointers passed as arguments to CString functions + evaluates CString functions. - unix.cstring.BadSizeArg - Checks for common anti-patterns in strncat size argument. llvm-svn: 150988
-
Douglas Gregor authored
and introducing the lambda closure type and its function call operator. Previously, we assumed that the lambda closure type would land directly in the current context, and not some parent context (as occurs with linkage specifications). Thanks to Richard for the test case. llvm-svn: 150987
-
Fariborz Jahanian authored
modern meta-data translation by commenting out private ivar declarations in user source. Also, added several tests. llvm-svn: 150985
-
Douglas Gregor authored
of that variable; it will need to be recomputed with the resolved type. llvm-svn: 150984
-
Chad Rosier authored
llvm-svn: 150983
-
Douglas Gregor authored
name mangling in the Itanium C++ ABI for lambda expressions is so dependent on context, we encode the number used to encode each lambda as part of the lambda closure type, and maintain this value within Sema. Note that there are a several pieces still missing: - We still get the linkage of lambda expressions wrong - We aren't properly numbering or mangling lambda expressions that occur in default function arguments or in data member initializers. - We aren't (de-)serializing the lambda numbering tables llvm-svn: 150982
-
Eric Christopher authored
handled by the caching and rauw. Also fix one cache that wasn't being added to highlighted by this patch. Update all testcases accordingly. This should fix the deall failure. llvm-svn: 150977
-
Eric Christopher authored
temporary forward declaration nodes. Fixes a problem building Chrome. llvm-svn: 150976
-
Gregory Szorc authored
llvm-svn: 150972
-
Gregory Szorc authored
llvm-svn: 150971
-
Gregory Szorc authored
llvm-svn: 150970
-
Gregory Szorc authored
llvm-svn: 150969
-
Douglas Gregor authored
properly. Previously, we deserialized it but failed to set the corresponding member in CXXNewExpr. Fixes <rdar://problem/10893600>. llvm-svn: 150963
-
Aaron Ballman authored
llvm-svn: 150960
-
Dylan Noblesmith authored
The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. llvm-svn: 150958
-
Chandler Carruth authored
match the behavior of GCC. Also add a test for these intrinsics, which apparently have *zero* tests. =[ Not surprisingly, Clang crashed when compiling these. Fix the bug in CodeGen where we failed to bitcast the argument type to x86mmx prior to calling the LLVM intrinsic. This fixes an assert on the new 3dnow-builtins.c test. This is one issue impacting the efforts to get Clang to emulate the Microsoft intrinsics headers -- 3dnow intrinsics are implictitly made available there. llvm-svn: 150948
-
Benjamin Kramer authored
Fixes PR11929. Found by valgrind. llvm-svn: 150943
-
Benjamin Kramer authored
Found by valgrind. llvm-svn: 150940
-
Chandler Carruth authored
actually matching the write substrings, and stop looking for a leading '/' to try and finish fixing darwin and other hosts. llvm-svn: 150938
-
- Feb 19, 2012
-
-
Fariborz Jahanian authored
declared in class extension and implementation. llvm-svn: 150937
-
Gregory Szorc authored
llvm-svn: 150936
-
Sebastian Redl authored
llvm-svn: 150933
-
Benjamin Kramer authored
llvm-svn: 150932
-
Sebastian Redl authored
llvm-svn: 150931
-