Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ASTUnit: Don't check that input files exist when parsing ASTs from the command | Daniel Dunbar | 2010-01-25 | 1 | -0/+4 |
| | | | | | | | line -- they may be remapped (fake) files. This is useful for testing parsing entirely from memory. llvm-svn: 94395 | ||||
* | -fno-rtti is now the default. | Chris Lattner | 2010-01-24 | 1 | -1/+0 |
| | | | | llvm-svn: 94379 | ||||
* | Implement instantiation of AsmStmts (Crazy, I know) | Anders Carlsson | 2010-01-24 | 1 | -1/+1 |
| | | | | llvm-svn: 94361 | ||||
* | Extend clang_createTranslationUnitFromSourceFile() to support creating | Douglas Gregor | 2010-01-23 | 2 | -12/+61 |
| | | | | | | translation units that include unsaved files. llvm-svn: 94258 | ||||
* | (1) Rename getClangSubversionRevision() to getClangRevision(), and | Ted Kremenek | 2010-01-22 | 2 | -16/+8 |
| | | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231 | ||||
* | Rename pch::SVN_BRANCH_REVISION to pch::VERSION_CONTROL_BRANCH_REVISION. | Ted Kremenek | 2010-01-22 | 2 | -4/+4 |
| | | | | llvm-svn: 94214 | ||||
* | Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵ | Ted Kremenek | 2010-01-22 | 2 | -4/+4 |
| | | | | | | return a StringRef. llvm-svn: 94213 | ||||
* | Patch to implement rewriting of properties. | Fariborz Jahanian | 2010-01-21 | 3 | -3/+9 |
| | | | | | | Fixes radar 7562952. llvm-svn: 94087 | ||||
* | Make some helper functions static. | Benjamin Kramer | 2010-01-20 | 1 | -5/+5 |
| | | | | llvm-svn: 94004 | ||||
* | Don't store a Twine temporary, it's unsafe. | Benjamin Kramer | 2010-01-20 | 1 | -4/+6 |
| | | | | llvm-svn: 94003 | ||||
* | Move the MacroBuilder utilitiy to its own header. Update references. | Chandler Carruth | 2010-01-20 | 1 | -0/+1 |
| | | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982 | ||||
* | Fix an invalid Twine use spotty by abbeyj, it isn't safe to use Twine | Daniel Dunbar | 2010-01-20 | 1 | -1/+4 |
| | | | | | | | temporaries (this is one reason I'm nervous about propagating their use beyond particularly performance critical places). llvm-svn: 93981 | ||||
* | Add a missing case for DeclContext printer. | Zhongxing Xu | 2010-01-20 | 1 | -0/+5 |
| | | | | llvm-svn: 93973 | ||||
* | Also handle CXXConstructor, CXXDestructor and CXXConversion in CFG | Mike Stump | 2010-01-20 | 1 | -2/+4 |
| | | | | | | printing. llvm-svn: 93968 | ||||
* | Use the llvm coding convention for indentation for switch. | Mike Stump | 2010-01-20 | 9 | -148/+148 |
| | | | | llvm-svn: 93966 | ||||
* | add support for Fedora 10 x86_64, there really should be a better way to ↵ | Chris Lattner | 2010-01-19 | 1 | -0/+4 |
| | | | | | | | | handle this. patch by Dmitry llvm-svn: 93948 | ||||
* | The type of a compound literal expression is not necessarily the same as the | John McCall | 2010-01-19 | 1 | -4/+4 |
| | | | | | | type which was syntactically written. Fixes PR 6080. llvm-svn: 93933 | ||||
* | Rewriteing of gnu extension __typeof in objective-c rewriter. | Fariborz Jahanian | 2010-01-19 | 1 | -1/+13 |
| | | | | | | Fixes radar 6358225. llvm-svn: 93917 | ||||
* | Avoid an instantiation of std::sort. | Benjamin Kramer | 2010-01-19 | 1 | -14/+10 |
| | | | | llvm-svn: 93882 | ||||
* | Preserve type source information in compound literal expressions. | John McCall | 2010-01-18 | 3 | -3/+10 |
| | | | | | | Patch by Enea Zaffanella! llvm-svn: 93752 | ||||
* | Print fix-it hints properly around tabs, from Christian Adåker! | Douglas Gregor | 2010-01-18 | 1 | -0/+36 |
| | | | | llvm-svn: 93750 | ||||
* | Improve source-location information for builtin TypeLocs, from Enea | Douglas Gregor | 2010-01-18 | 2 | -2/+14 |
| | | | | | | Zaffanella (with a couple of my tweaks). llvm-svn: 93733 | ||||
* | Encoding calling conventions in the type system, from Charles Davis! | Douglas Gregor | 2010-01-18 | 2 | -4/+8 |
| | | | | llvm-svn: 93726 | ||||
* | PR6055: fix FreeBSD c++ include path. patch by Roman Divacky | Nuno Lopes | 2010-01-17 | 1 | -1/+1 |
| | | | | llvm-svn: 93668 | ||||
* | Add PCH support for CXXStaticCastExpr, CXXDynamicCastExpr, ↵ | Sam Weinig | 2010-01-16 | 2 | -0/+95 |
| | | | | | | CXXReinterpretCastExpr, CXXConstCastExpr and CXXFunctionalCastExpr. llvm-svn: 93658 | ||||
* | Fix a rewriting crash and correct rewriting of __block | Fariborz Jahanian | 2010-01-16 | 1 | -7/+18 |
| | | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650 | ||||
* | Improve location information for Objective-C category declarations. We | Douglas Gregor | 2010-01-16 | 2 | -3/+6 |
| | | | | | | | | | | | | | previously only had a single location (the @ in @interface); now we know where the @ is (for the start of the declaration), where the class name is (that's the normal "location" now for diagnostics), and where the category name is. Also, eliminated the redundant "end" location, since ObjCContainerDecl already has better @end information. The only XFAIL'd test is temporary; will un-XFAIL-it once I've taught CIndex how to use the new locations. llvm-svn: 93639 | ||||
* | Keep track of the source locations for each protocol reference in | Douglas Gregor | 2010-01-16 | 3 | -7/+45 |
| | | | | | | | | Objective-C classes, protocol definitions, forward protocol declarations, and categories. This information isn't actually used yet; that's coming next. llvm-svn: 93636 | ||||
* | define __weak to null in rewritten source for | Fariborz Jahanian | 2010-01-15 | 1 | -0/+1 |
| | | | | | | -fms-extensions as well. llvm-svn: 93569 | ||||
* | Preserve type source information in explicit cast expressions. | John McCall | 2010-01-15 | 3 | -98/+70 |
| | | | | | | Patch by Enea Zaffanella. llvm-svn: 93522 | ||||
* | Do not do the block-specific rewrite when there is no block literals. | Fariborz Jahanian | 2010-01-15 | 1 | -1/+1 |
| | | | | | | Fixes radar 7546096. llvm-svn: 93519 | ||||
* | Patch to avoid duplicate declaration of byref structs | Fariborz Jahanian | 2010-01-14 | 1 | -9/+35 |
| | | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 llvm-svn: 93474 | ||||
* | Fix a bug in rewrite whereby functions using blocks put extern "C" in wrong ↵ | Fariborz Jahanian | 2010-01-14 | 1 | -2/+38 |
| | | | | | | | | place. Fixes radar 7284618. llvm-svn: 93382 | ||||
* | Add type source information for both kinds of typeof types. | John McCall | 2010-01-13 | 2 | -4/+14 |
| | | | | | | Patch by Enea Zaffanella. llvm-svn: 93344 | ||||
* | Predefine __weak attribute when doing objective-c | Fariborz Jahanian | 2010-01-13 | 2 | -4/+11 |
| | | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331 | ||||
* | diagnose invalid values of -ftabstop, patch by Christian Adaker! | Chris Lattner | 2010-01-13 | 2 | -4/+12 |
| | | | | llvm-svn: 93288 | ||||
* | cc1: Factor out CompilerInstance::ExecuteAction which has the majority of the | Daniel Dunbar | 2010-01-13 | 1 | -0/+87 |
| | | | | | | | | clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a clang -cc1 like interface, but aren't actually part of clang -cc1. llvm-svn: 93282 | ||||
* | Improve on objective-c pointer recognition | Fariborz Jahanian | 2010-01-12 | 1 | -2/+3 |
| | | | | | | during rewrite. No functionality chang. llvm-svn: 93241 | ||||
* | Fix rewriting of MacOS sjlj based eh. | Fariborz Jahanian | 2010-01-12 | 1 | -4/+4 |
| | | | | | | Fixes radar 7522880. llvm-svn: 93219 | ||||
* | Fix rewriting for forward class declaration. | Fariborz Jahanian | 2010-01-11 | 1 | -3/+11 |
| | | | | | | (fixes radar 6969189). llvm-svn: 93201 | ||||
* | Fixup rewrite of ivars accessed via an explicit object | Fariborz Jahanian | 2010-01-11 | 1 | -2/+3 |
| | | | | | | in a function. Fixes radar 7522803. llvm-svn: 93159 | ||||
* | Silence MSVC warning. | Benjamin Kramer | 2010-01-10 | 1 | -1/+1 |
| | | | | | | RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation llvm-svn: 93124 | ||||
* | Generalize target weirdness handling having proper layering in mind: | Anton Korobeynikov | 2010-01-10 | 2 | -1/+7 |
| | | | | | | | | | 1. Add helper class for sema checks for target attributes 2. Add helper class for codegen of target attributes As a proof-of-concept - implement msp430's 'interrupt' attribute. llvm-svn: 93118 | ||||
* | Fix PR5982, a refacto in checking for '=' in a -D argument. | Daniel Dunbar | 2010-01-10 | 1 | -8/+5 |
| | | | | llvm-svn: 93088 | ||||
* | implement -ftabstop=width, patch by Christian Adåker | Chris Lattner | 2010-01-09 | 2 | -2/+8 |
| | | | | llvm-svn: 93078 | ||||
* | revert 91891, a workaround for PR5514. | Chris Lattner | 2010-01-09 | 1 | -2/+1 |
| | | | | llvm-svn: 93077 | ||||
* | Use MacroBuilder for TargetDefines instead of std::vector. | Benjamin Kramer | 2010-01-09 | 1 | -3/+1 |
| | | | | llvm-svn: 93058 | ||||
* | Move MacroBuilder into Frontend/Utils.h and clean it up a bit. | Benjamin Kramer | 2010-01-09 | 1 | -127/+89 |
| | | | | llvm-svn: 93057 | ||||
* | Rework InitPreprocessor to use a MacroBuilder class instead of pushing around | Benjamin Kramer | 2010-01-09 | 1 | -248/+208 |
| | | | | | | | | | | | | std::vectors. - MacroBuilder wraps a raw_ostream so it can easily write to any buffer supported by raw_ostream. - MacroBuilder's method take Twines for easy string concatenation (this was done with sprintf and temporary buffers before). - Targets still use std::vector as they don't have access to the builder. llvm-svn: 93051 | ||||
* | Switch UndefineBuiltinMacro() over to using StringRef | Kovarththanan Rajaratnam | 2010-01-09 | 1 | -2/+2 |
| | | | | llvm-svn: 93049 |