- Aug 20, 2012
-
-
Chad Rosier authored
llvm-svn: 162210
-
Jordan Rose authored
Forgetting to at least cast the result was giving us Loc/NonLoc problems in SValBuilder (hitting an assertion). But the standard (both C and C++) does actually guarantee that && and || will result in the actual values 1 and 0, typed as 'int' in C and 'bool' in C++, and we can easily model that. PR13461 llvm-svn: 162209
-
Dmitri Gribenko authored
llvm-svn: 162206
-
Manuel Klimek authored
- use InnerMatcher consistently, fix style violations on the way - doxygenify code snippets across all comments - start doxygenifying code references in text - addeed missing Usable as: sections llvm-svn: 162205
-
Tobias Grosser authored
Without this patch, lib.clang_getNumCompletionChunks is called at each _iteration_ of a 'for chunk in CompletionString' loop. Now we call it just once. llvm-svn: 162200
-
Hans Wennborg authored
llvm-svn: 162198
-
Tobias Grosser authored
Suggested by: Francisco Lopes <oblita@gmail.com> llvm-svn: 162191
-
- Aug 19, 2012
-
-
Gregory Szorc authored
It isn't used anywhere yet. llvm-svn: 162190
-
Tobias Grosser authored
Reported by: Francisco Lopes <oblita@gmail.com> llvm-svn: 162182
-
Tobias Grosser authored
llvm-svn: 162181
-
- Aug 18, 2012
-
-
Jordan Rose authored
In Debug builds, VerifyDiagnosticConsumer checks any files with diagnostics to make sure we got the chance to parse them for directives (expected-warning and friends). This check previously relied on every parsed file having a FileEntry, which broke the cling interpreter's test suite. This commit changes the extra debug checking to mark a file as unparsed as soon as we see a diagnostic from that file. At the very end, any files that are still marked as unparsed are checked for directives, and a fatal error is emitted (as before) if we find out that there were directives we missed. -verify directives should always live in actual parsed files, not in PCH or AST files. Patch by Andy Gibbs, with slight modifications by me. llvm-svn: 162171
-
Benjamin Kramer authored
llvm-svn: 162168
-
John McCall authored
always yield a positive number. Just print the negated result as an unsigned number. llvm-svn: 162163
-
Richard Smith authored
nested names as id-expressions, using the annot_primary_expr annotation, where possible. This removes some redundant lookups, and also allows us to typo-correct within tentative parsing, and to carry on disambiguating past an identifier which we can determine will fail lookup as both a type and as a non-type, allowing us to disambiguate more declarations (and thus offer improved error recovery for such cases). This also introduces to the parser the notion of a tentatively-declared name, which is an identifier which we *might* have seen a declaration for in a tentative parse (but only if we end up disambiguating the tokens as a declaration). This is necessary to correctly disambiguate cases where a variable is used within its own initializer. llvm-svn: 162159
-
Dmitri Gribenko authored
declare size_t in system-independent way. llvm-svn: 162158
-
Jordan Rose authored
Our current handling of 'throw' is all CFG-based: it jumps to a 'catch' block if there is one and the function exit block if not. But this doesn't really get the right behavior when a function is inlined: execution will continue on the caller's side, which is always the wrong thing to do. Even within a single function, 'throw' completely skips any destructors that are to be run. This is essentially the same problem as @finally -- a CFGBlock that can have multiple entry points, whose exit points depend on whether it was entered normally or exceptionally. Representing 'throw' as a sink matches our current (non-)handling of @throw. It's not a perfect solution, but it's better than continuing analysis in an inconsistent or even impossible state. <rdar://problem/12113713> llvm-svn: 162157
-
Jordan Rose authored
The CFG approximates @throw as a return statement, but that's not good enough in inlined functions. Moreover, since Objective-C exceptions are usually considered fatal, we should be suppressing leak warnings like we do for calls to noreturn functions (like abort()). The comments indicate that we were probably intending to do this all along; it may have been inadvertantly changed during a refactor at one point. llvm-svn: 162156
-
Jordan Rose authored
This was once an adapter class between callbacks that had CheckerContexts and those that don't, but for a while now it's essentially just been a wrapper around a ProgramPointTag. We can just pass the tag around instead. No functionality change. llvm-svn: 162155
-
Jordan Rose authored
We shouldn't be reinventing our own wheels. This also paves the way for marking different kinds of sinks. No functionality change. llvm-svn: 162154
-
Dmitri Gribenko authored
llvm-svn: 162153
-
Eric Christopher authored
Make isa part of objc_object at metadata generation time. Noticed on inspection. llvm-svn: 162145
-
Douglas Gregor authored
Sema::ActOnEndOfTranslationUnit(). This is a (minor) optimization. llvm-svn: 162144
-
- Aug 17, 2012
-
-
Fariborz Jahanian authored
specifier is unsed in a declaration; as it may not make the symbol local to linkage unit as intended. Suggest using "hidden" visibility attribute instead. // rdar://7703982 llvm-svn: 162138
-
Chad Rosier authored
llvm-svn: 162134
-
Richard Smith authored
llvm-svn: 162133
-
Chad Rosier authored
pollute SemaStmt with extraneous asm handling logic. llvm-svn: 162132
-
Fariborz Jahanian authored
'int' vs. 'long' issue with i386. llvm-svn: 162125
-
Jordan Rose authored
Fixes <rdar://problem/12119814> llvm-svn: 162123
-
Fariborz Jahanian authored
llvm-svn: 162117
-
Daniel Dunbar authored
- The SDKROOT environment variable is the de facto way to set the default SDK for a number of tools, join forces with them. llvm-svn: 162116
-
Dmitri Gribenko authored
isExplicitTemplateSpecialization() matchers which do what their name says. llvm-svn: 162115
-
Alexander Kornienko authored
llvm-svn: 162110
-
Fariborz Jahanian authored
on unsafe cast of a c-function call. This is a C-only option. llvm-svn: 162109
-
Benjamin Kramer authored
GCC documents these as unsigned, but defines them as signed. llvm-svn: 162106
-
Chad Rosier authored
instruction, not emitting them, so a NullStream is fine. llvm-svn: 162105
-
Dmitri Gribenko authored
llvm-svn: 162102
-
Benjamin Kramer authored
llvm-svn: 162096
-
Hans Wennborg authored
Initializing a reference with itself, e.g. "int &a = a;" seems like a very bad idea. llvm-svn: 162093
-
Douglas Gregor authored
literals match the spacing introduced by the ObjC modernizer. Fixes the rest of <rdar://problem/11889572>. llvm-svn: 162084
-
Douglas Gregor authored
declaration context, check whether the primary context---not the current context---has any external visible declarations. Fixes PR13616. llvm-svn: 162083
-