- Sep 21, 2011
-
-
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] Refactor PathDiagnosticLocation: Add comments. Remove the last constructor which could allow invalid locations to slip in. llvm-svn: 140200
-
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
llvm-svn: 140191
-
Argyrios Kyrtzidis authored
don't store an extra location for it. llvm-svn: 140190
-
Francois Pichet authored
llvm-svn: 140189
-
Bob Wilson authored
This replaces the hack to read UNAME_RELEASE from the environment when identifying the OS version on Darwin, and it's more flexible. It's also horribly ugly, but at least this consolidates the ugliness to touch less of the code so that it will be easier to rip out later. llvm-svn: 140187
-
- Sep 20, 2011
-
-
Anna Zaks authored
[analyzer] Refactor PathDiagnosticLocation: Make PathDiagnosticLocation(SourceLocation...) private. Most of the effort here goes to making BugReport refer to a PathDiagnosticLocation instead of FullSourceLocation. (Another step closer to the goal of having Diagnostics which can recover from invalid SourceLocations.) llvm-svn: 140182
-
Anna Zaks authored
llvm-svn: 140180
-
Chad Rosier authored
rdar://10125227 llvm-svn: 140179
-
Richard Trieu authored
erronously trigger the digraph correction fix-it. Include a new test to catch this in the future. llvm-svn: 140175
-
Akira Hatanaka authored
llvm-svn: 140174
-
Ted Kremenek authored
llvm-svn: 140171
-
Akira Hatanaka authored
of Mips32 big and little endian derive. llvm-svn: 140170
-
Akira Hatanaka authored
UnwindException structure is 32 for mips64. llvm-svn: 140165
-
Anna Zaks authored
[analyzer] Refactor PathDiagnosticLocation: Use PointerUnion of LocationContext and AnalysisContext to support creation of PathDiagnosticLocations for checkers which no context sensitivity. llvm-svn: 140162
-
Akira Hatanaka authored
llvm-svn: 140161
-
Douglas Gregor authored
from unfriendly (== not at all modularized) directories. This is temporary, and it only affects module construction until I'll figured out how to deal with system headers. llvm-svn: 140159
-
Eric Christopher authored
llvm-svn: 140155
-
DeLesley Hutchins authored
llvm-svn: 140149
-
Anna Zaks authored
llvm-svn: 140147
-
Anna Zaks authored
llvm-svn: 140146
-
Ivan Krasin authored
change __builtin_va_list to from a structure to int[4] (same alignment and size, but with a simpler representation). Patch by David Meyer! llvm-svn: 140144
-
Peter Collingbourne authored
Per John's review comments for r140068. llvm-svn: 140142
-
John McCall authored
presence of an implicit move assignment operator. I think the implicit copy assignment operator case was also wrong, but just in a "displaying the wrong diagnostic" way. llvm-svn: 140139
-
Chandler Carruth authored
of false positive warnings that depend on noreturn destructors pruning the CFGs, but only in C++0x mode! This was really surprising as the debugger quickly reveals that the attributes are parsed correctly (and using the same code) in both modes. The warning fires in the same way in both modes. But between parsing and building the destructor declaration with the noreturn attribute and the warning, it magically disappears. The key? The 'noexcept' appears! When we were rebuilding the destructor type with the computed implicit noexcept we completely dropped the old type on the floor. This almost makes sense (as the arguments and return type to a destructor aren't exactly unpredictable), but lost any function type attributes as well. The fix is simple, we build the new type off of the old one rather than starting fresh. Testing this is a bit awkward. I've done it by running the noreturn-sensitive tests in both modes, which previous failed and now passes, but if anyone has ideas about how to more specifically and thoroughly test that the extended info on a destructor is preserved when adding noexcept, I'm all ears. llvm-svn: 140138
-
Anna Zaks authored
[analyzer] Refactor PathDiagnosticLocation: Pre-compute Range and Location with gen methods on object creation instead of computing on demand. This would allow to remove dependency on the other members which help with construction and might not even be valid at later stages (to be removed later on). llvm-svn: 140131
-
Anna Zaks authored
llvm-svn: 140130
-