- Sep 23, 2011
-
-
Benjamin Kramer authored
llvm-svn: 140365
-
Douglas Gregor authored
constructor template. Fixes PR10457. llvm-svn: 140350
-
Francois Pichet authored
[microsoft] Fix a bug in -fdelayed-template-parsing mode where we were not reentering the delayed function context correctly. The problem was that all template params were reintroduced inside the same scope. So if we had a situation where we had 2 template params with the same name at different scope then clang would generate an error about ambiguous name. The solution is to create a new ParseScope(Scope::TemplateParamScope) for each template scope that we want to reenter. (from the outmost to the innermost scope) This fixes some errors when parsing MFC code with clang. llvm-svn: 140344
-
- Sep 22, 2011
-
-
Benjamin Kramer authored
This moves the existing code for CPATH into the driver and adds the environment lookup and path splitting there. The paths are then passed down to cc1 with -I options (CPATH), added after the normal user-specified include dirs. Language specific paths are passed via -LANG-isystem and the actual filtering is performed in the frontend. I tried to match GCC's behavior as close as possible Fixes PR8971. llvm-svn: 140341
-
Argyrios Kyrtzidis authored
may be unordered and MSVC's debug-mode doesn't like it. llvm-svn: 140337
-
Bill Wendling authored
It's not valid to remove filters from landingpad instructions, even if we catch the type. The metadata won't be set up correctly. Testcase is projects/llvm-test/SingleSource/UnitTests/EH/filter-2.cpp. llvm-svn: 140335
-
Douglas Gregor authored
generation when we're dealing with an implicitly-defined copy or move constructor. And, actually set the implicitly-defined bit for implicitly-defined constructors and destructors. Should fix self-host. llvm-svn: 140334
-
Argyrios Kyrtzidis authored
Use ASTTemplateArgumentListInfo instead. llvm-svn: 140331
-
Argyrios Kyrtzidis authored
llvm-svn: 140330
-
Anna Zaks authored
ST->scanReachableSymbols() is creating a SubRegionMap (SRM) on every call since one SRM is created in each ScanReachableSymbols instance. Creating the object just once and calling only scan inside the loop gives ~ 14% speed up of the StaticAnalyzer run (Release+Asserts). Pull out the declaration of the ScanReachableSymbols so that it can be used directly. Document ProgramState::scanReachableSymbols() methods. llvm-svn: 140323
-
Justin Holewinski authored
llvm-svn: 140320
-
Douglas Gregor authored
linkage name via typedef. Patch from/fixes PR10958. llvm-svn: 140317
-
Douglas Gregor authored
ever. Fixes PR10939. llvm-svn: 140304
-
Douglas Gregor authored
they still need the logic to cope with array member initialization. Fixes PR10720. llvm-svn: 140302
-
Tobias Grosser authored
OpenCL 6.2.1 says: "Implicit conversions between built-in vector data types are disallowed." OpenCL 6.2.2 says: "Explicit casts between vector types are not legal." For example: uint4 u = (uint4)(1); int4 i = u; // invalid implicit conversion int4 e = (int4)u; // invalid explicit conversion Fixes PR10967. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com> llvm-svn: 140300
-
David Blaikie authored
llvm-svn: 140293
-
David Blaikie authored
llvm-svn: 140290
-
David Blaikie authored
llvm-svn: 140288
-
David Blaikie authored
llvm-svn: 140287
-
- Sep 21, 2011
-
-
Tobias Grosser authored
OpenCL is different from AltiVec in the way it supports vector literals. OpenCL is strict with regards to semantic checks. For example, implicit conversions and explicit casts between vectors of different types are disallowed. Fixes PR10975. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com> llvm-svn: 140270
-
David Blaikie authored
llvm-svn: 140268
-
Benjamin Kramer authored
llvm-svn: 140256
-
Douglas Gregor authored
Dyatkovskiy! Fixes PR10896. llvm-svn: 140250
-
John McCall authored
conversions (rather than just call-arguments). llvm-svn: 140244
-
John McCall authored
if the definition has a non-variadic prototype with compatible parameters. Therefore, the default rule for such calls must be to use a non-variadic convention. Achieve this by casting the callee to the function type with which it is required to be compatible, unless the target specifically opts out and insists that unprototyped calls should use the variadic rules. The only case of that I'm aware of is the x86-64 convention, which passes arguments the same way in both cases but also sets a small amount of extra information; here we seek to maintain compatibility with GCC, which does set this when calling an unprototyped function. Addresses PR10810 and PR10713. llvm-svn: 140241
-
Francois Pichet authored
[microsoft] Move missing typename warning from -fms-extensions to -fms-compatibility. Also allow the missing typename warning at function scope. llvm-svn: 140240
-
Benjamin Kramer authored
llvm-svn: 140238
-
Richard Trieu authored
assert(!"error message"); To: assert(0 && "error message"); which is more consistant across the code base. llvm-svn: 140232
-
Richard Trieu authored
Change "ivar" to true for a boolean function argument. Since string literals are cast to true, this should no effect on behavior. llvm-svn: 140231
-
Akira Hatanaka authored
llvm-svn: 140226
-
Anna Zaks authored
[analyzer] Fix a bug where PathDiagnosticLocation did not generate a valid range and add asserts to check validity of locations early on. Ignore invalid ranges in PathDiagnosticPiece (they could be added by checker writers). Addresses radar://10124836 and radar://radar10102244. llvm-svn: 140218
-
-
Argyrios Kyrtzidis authored
we already have the range in the PPEntityOffsets array. llvm-svn: 140209
-
Argyrios Kyrtzidis authored
and don't store the ID for each preprocessed entity. llvm-svn: 140208
-
Argyrios Kyrtzidis authored
return a cursor for the inner macro. llvm-svn: 140207
-
Anna Zaks authored
[analyzer] Refactor PathDiagnosticLocation: Remove SourceRange member from PathDiagnosticLocation - FullSourceLoc Loc and PathDiagnosticRange Range are sufficient. llvm-svn: 140206
-
Anna Zaks authored
[analyzer] Remove dead code. (This code is trying to implement the idea that PathDiagnosticClient could implement DiagnosticClient and has been dead for a while). llvm-svn: 140198
-
Argyrios Kyrtzidis authored
directly at the end of the source file. llvm-svn: 140192
-
Argyrios Kyrtzidis authored
don't store an extra location for it. llvm-svn: 140190
-
Francois Pichet authored
llvm-svn: 140189
-