aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-12-12Renamed getFullSourceLoc() -> getFullLoc().Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44949 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Added method: Preprocessor::getFullSourceLoc. Used by clients of PreprocessorTed Kremenek
to get a FullSourceLoc from a SourceLocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44948 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Renamed FullContextSourceLocation to FullSourceLoc.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44947 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Added utility static method to FullContextSourceLocationTed Kremenek
for creating "invalid" location objects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44946 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12make it a bit more clear in what way the ivar is consistent.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44945 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12add an ivar_size() method that never returns -1.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44944 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Constified a predicate method.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44943 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Added class FullContextSourceLocation: a tuple class thatTed Kremenek
contains both a SourceLocation and its associated SourceManager. This class is useful for argument passing to functions that expect both objects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44942 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12simplify some code, bump j. This fixes the remaining test failures.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44941 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Moved construction of TargetInfo objects out of the DriverTed Kremenek
and into the "Basic" library. TargetInfo objects are now constructed from triples by calling the static method TargetInfo::CreateTargetInfo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44940 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12handle the -1'ness of undefined listsChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44939 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12unbreak the build. I'm still working on test failures.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44938 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12fix typoChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44932 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12more cleanups changing things like getInstanceVariables to iterators.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44930 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12resolve some fixmes and clean up some code by eliminating the get*Vars apis ↵Chris Lattner
to some classes and use iterators instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44927 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12start cleaning up interfaces for objc bits and pieces by switching to anChris Lattner
iterator interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44926 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12split objc pieces of SemaDecl.cpp out into SemaDeclObjC.cppChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44925 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Added back VisitDeclStmt() to the StmtDumper, essentially reverting r44920:Ted Kremenek
http://llvm.org/viewvc/llvm-project?rev=44920&view=rev Putting VisitDeclStmt() was motivated because it called DumpDeclarator(), which printed out a little bit more information than just using the child_iterator interface to visit the subexpressions of DeclStmt. To avoid printing the initializers twice, DumpSubTree() now specially checks for DeclStmts; in such cases it calls VisitDeclStmt() without using the child_iterators to visit the subexpressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44924 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12move function to a more logical location, add its grammar productions.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44923 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12remove todoChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44922 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Removed VisitDeclStmt(). The initializers of a DeclStmt are now automaticallyTed Kremenek
printed out by DumpSubTree() via the child_iterator interface. This fixes a bug where the initializers were being dumped twice. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44920 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Unbreak -stats on cocoa.hChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44919 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12add run lines.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44918 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12add run lineChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44917 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12add runline, make this test real.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44916 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12verify that tests contain RUN lines.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44915 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12simplify some code.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44913 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12implement correct semantic analysis for shifts. For:Chris Lattner
int test(int x, long long y) { return x << y; } we now realize the type of the shift is int, not long long. This fixes a fixme from june. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44912 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Simplify some code, don't force the triple to a darwin triple if non-darwin.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44911 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12typo reported by Gabor GreifChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44909 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Fix a codegen crash on test/CodeGen/cast.c, reported by Keith.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44908 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12fix typo pointed out by gordonChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44906 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12fix expected errors.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44901 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Add -pedantic so test passes.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44900 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Add ObjC parser support for concatenated ObjC strings. Note thatChris Lattner
this is passed to sema and ignored there, so the second part of the string will not make it into the AST. Passing to Fariborz to finish Sema + AST construction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44898 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-12Implemented type checking for pointer of objects of protocol-qualified types.Fariborz Jahanian
Note that incompatible-protocol-qualified-types.m is currently failing. This is unrelated to this patch and Steve is looking at the general problem of not reporting incompitible pointer types in return stetement.. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44897 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Moved creation of SourceManager, HeaderSearch, TargetInfo, and LangOptionsTed Kremenek
into the loop that processes input files. These will soon become translation unit specific (with the exception of LangOptions). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44893 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11simplify code now that isConstantExpr really does alwaysChris Lattner
return a loc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44890 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Fix a case where we'd return "is not a constant expr" withoutChris Lattner
return a location. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44889 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-1180-column please.Fariborz Jahanian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44888 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Modified the internals of Diagnostic and DiagnosticClient to useTed Kremenek
SourceManager*'s instead of SourceManager&'s. This allows the client specify a NULL SourceManager when using a default constructed SourceLocation. Thus the SourceManager can be NULL when the SourceLocation's isValid() == false. The interface to most clients of Diagnostic remains the same. Diagnostic::Report() is overload to either accept a SourceLocation and a SourceManager&, or neither. Thus clients that do not have a SourceManager cannot specify a SourceLocation. Modified TextDiagnostics* to use this new interface. Modified the driver to not passed in SourceManager when warning about "-I-". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44887 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Implemented rewriting of protocol-qualified global variable types.Fariborz Jahanian
Re-implemented some of rewriting of protocol-qualified function argument types to support it in its generality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44886 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11gcc supports more targets.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44885 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11update pch discussionChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44884 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11improve titleChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44883 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11add a con of clang vs gccChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44882 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Match union field type when member expression is u->xDevang Patel
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44879 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. NowTed Kremenek
SourceManager is passed by reference, allowing the SourceManager to be associated with a specific translation unit, and not the entire execution of the driver. Modified all users of Diagnostics to comply with this new interface. Integrated SourceManager as a member variable of TargetInfo. TargetInfo will eventually be associated with a single translation unit (just like SourceManager). Made the SourceManager reference in ASTContext private. Provided accessor getSourceManager() for clients to use instead. Modified clients to comply with new interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44878 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Refactor Rewritetest::RewriteObjcQualifiedInterfaceTypes in preparation for moreFariborz Jahanian
general use. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44876 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-11Refactor bit-field handling code into a separate method.Devang Patel
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44875 91177308-0d34-0410-b5e6-96231b3b80d8