- Feb 01, 2010
-
-
Chris Lattner authored
emmintrin looks ok. llvm-svn: 94998
-
Ted Kremenek authored
llvm-svn: 94994
-
Ted Kremenek authored
when checking if the format specifier matches the type of the data argument and the length modifier indicates the data type is 'char' or 'short'. llvm-svn: 94992
-
Devang Patel authored
llvm-svn: 94991
-
John McCall authored
deduction failed. Right now there's a very vague diagnostic for most cases and a good diagnostic for incomplete deduction. llvm-svn: 94988
-
Sam Weinig authored
llvm-svn: 94972
-
John McCall authored
llvm-svn: 94971
-
- Jan 31, 2010
-
-
Sebastian Redl authored
Add VarDecl::isThisDeclarationADefinition(), which properly encapsulates the logic for when a variable declaration is a (possibly tentativ) definition. Add a few functions building on this, and shift C tentative definition handling over to this new functionality. This shift also kills the Sema::TentativeDefinitions map and instead simply stores all declarations in the renamed list. The correct handling for multiple tentative definitions is instead shifted to the final walk of the list. llvm-svn: 94968
-
Eli Friedman authored
not quite sure what we want to do about the AST representation; comments welcome. llvm-svn: 94967
-
Eli Friedman authored
llvm-svn: 94965
-
Anders Carlsson authored
llvm-svn: 94964
-
Anders Carlsson authored
llvm-svn: 94963
-
Chandler Carruth authored
llvm-svn: 94958
-
Chandler Carruth authored
llvm-svn: 94957
-
Chandler Carruth authored
change. PS: I'm under the impression formatting-only patches don't need pre-commit review, but feel free to yell at me if I should post these first! =D llvm-svn: 94956
-
Chandler Carruth authored
the lack of documentation, this matches the behavior of GCC. llvm-svn: 94954
-
Chandler Carruth authored
arguments. This both prevents meaningless checks on these arguments and ensures that they are represented as an expression by the instantiation. Cleaned up and added standard text to the relevant test case. Also started adding tests for *rejected* cases. At least one FIXME here where (I think) we allow something we shouldn't. More to come in the area of rejecting crazy arguments with decent diagnostics. Suggestions welcome for still better diagnostics on these errors! llvm-svn: 94953
-
Douglas Gregor authored
(necessarily simultaneous) changes: - CXXBaseOrMemberInitializer now contains only a single initializer rather than a set of initialiation arguments + a constructor. The single initializer covers all aspects of initialization, including constructor calls as necessary but also cleanup of temporaries created by the initializer (which we never handled before!). - Rework + simplify code generation for CXXBaseOrMemberInitializers, since we can now just emit the initializer as an initializer. - Switched base and member initialization over to the new initialization code (InitializationSequence), so that it - Improved diagnostics for the new initialization code when initializing bases and members, to match the diagnostics produced by the previous (special-purpose) code. - Simplify the representation of type-checked constructor initializers in templates; instead of keeping the fully-type-checked AST, which is rather hard to undo at template instantiation time, throw away the type-checked AST and store the raw expressions in the AST. This simplifies instantiation, but loses a little but of information in the AST. - When type-checking implicit base or member initializers within a dependent context, don't add the generated initializers into the AST, because they'll look like they were explicit. - Record in CXXConstructExpr when the constructor call is to initialize a base class, so that CodeGen does not have to infer it from context. This ensures that we call the right kind of constructor. There are also a few "opportunity" fixes here that were needed to not regress, for example: - Diagnose default-initialization of a const-qualified class that does not have a user-declared default constructor. We had this diagnostic specifically for bases and members, but missed it for variables. That's fixed now. - When defining the implicit constructors, destructor, and copy-assignment operator, set the CurContext to that constructor when we're defining the body. llvm-svn: 94952
-
Benjamin Kramer authored
llvm-svn: 94951
-
Chandler Carruth authored
when implicitly supplied to the injected class name. llvm-svn: 94948
-
Chandler Carruth authored
explicit '&' by introducing an address-of operator prior to checking the argument's type. llvm-svn: 94947
-
Anders Carlsson authored
When performing a derived-to-base cast that we know will not change the offset, we don't need to null check the input pointer. Fixes PR5965. llvm-svn: 94942
-
Anders Carlsson authored
When doing a base-to-derived cast we don't need to null check the derived value if the class offset is 0. llvm-svn: 94939
-
Anders Carlsson authored
llvm-svn: 94938
-
Daniel Dunbar authored
pending a hash function. Also added a --max-depth argument, handy for timing and limiting the volume of output. llvm-svn: 94936
-
Daniel Dunbar authored
have sent Ted a test case for this. llvm-svn: 94935
-
Daniel Dunbar authored
llvm-svn: 94934
-
Daniel Dunbar authored
cindex/Python: Add full support for Diagnostic and FixIt objects, available via TranslationUnit.diagnostics. Several important FIXMEs remain: - We aren't getting all the notes? - There is still no way to get diagnostics for invalid inputs. llvm-svn: 94933
-
Daniel Dunbar authored
Hurray for exposing implementation details!!! llvm-svn: 94932
-
Daniel Dunbar authored
llvm-svn: 94931
-
Daniel Dunbar authored
llvm-svn: 94930
-
Daniel Dunbar authored
llvm-svn: 94929
-
Daniel Dunbar authored
CIndex: Fix diagnostic callback to not return SourceLocations with a reference to a temporary LangOptions object. llvm-svn: 94928
-
Daniel Dunbar authored
that diagnostics with a source location should occur inside {Begin,End}SourceFile. Note that code completion is currently passing in an invalid LangOptions object due to its implementation, I need to sort this out with Doug. llvm-svn: 94927
-
Anders Carlsson authored
llvm-svn: 94926
-
- Jan 30, 2010
-
-
Anders Carlsson authored
llvm-svn: 94925
-
Daniel Dunbar authored
live as long as the ASTUnit. This is useful for clients which want to maintain pointers to the LangOptions object which ultimately lives in the CompilerInvocation, although it would be nice to make all of this ownership stuff more explicit and obvious. llvm-svn: 94924
-
Daniel Dunbar authored
This allows clients to install their own CompilerInvocation object, which is important for clients that may wish to create references to things like LangOptions whose lifetime will extend past that of the CompilerInstance. llvm-svn: 94923
-
Anders Carlsson authored
llvm-svn: 94922
-
Anders Carlsson authored
llvm-svn: 94921
-